{
  "_id": "6a1d58901d7bb097a0a477c0",
  "Package": "J4R",
  "Type": "Package",
  "Title": "Create 'Java' Objects and Execute 'Java' Methods",
  "Version": "1.3.0",
  "Authors@R": "c(\nperson(\"Mathieu\", \"Fortin\", email = \"mathieu.fortin.re@gmail.com\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-6436-2727\")),\nperson(c(\"Alex\", \"M\"), \"Chubaty\", email=\"achubaty@for-cast.ca\", role=c(\"ctb\"), comment = c(ORCID = \"0000-0001-7146-8135\")),\nperson(\"His Majesty the King in right of Canada\", role=c(\"cph\")))",
  "Description": "Makes it possible to create 'Java' objects and to execute\n'Java' methods from the 'R' environment. The 'Java' Virtual\nMachine is handled by a gateway server. Commands are sent to\nthe server through a socket connection from the 'R'\nenvironment. Calls to 'Java' methods allow for vectors so that\na particular method is iteratively run on each element of the\nvector. A score algorithm also makes the calls to 'Java'\nmethods less restrictive. The gateway server relies on the\nrunnable 'Java' library 'j4r.jar'. This library is licensed\nunder the LGPL-3. Its sources are included in the jar file.",
  "URL": "https://github.com/CWFC-CCFB/J4R",
  "License": "LGPL-3",
  "BugReports": "https://github.com/CWFC-CCFB/J4R/issues",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.1",
  "SystemRequirements": "Java 8 or later",
  "Config/pak/sysreqs": "default-jdk",
  "Repository": "https://predictiveecology.r-universe.dev",
  "Date/Publication": "2025-09-29 13:36:53 UTC",
  "RemoteUrl": "https://github.com/CWFC-CCFB/J4R",
  "RemoteRef": "HEAD",
  "RemoteSha": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-01 09:55:31 UTC",
    "User": "root"
  },
  "Author": "Mathieu Fortin [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6436-2727>),\nAlex M Chubaty [ctb] (ORCID: <https://orcid.org/0000-0001-7146-8135>),\nHis Majesty the King in right of Canada [cph]",
  "Maintainer": "Mathieu Fortin <mathieu.fortin.re@gmail.com>",
  "MD5sum": "a1997f802c499553e6ada509cd1162a6",
  "_user": "predictiveecology",
  "_type": "src",
  "_file": "J4R_1.3.0.tar.gz",
  "_fileid": "cc12cb425ceb97923ff45d17faeec8f2226cc621e0e7e48a67648323e49cf6cc",
  "_filesize": 1685369,
  "_sha256": "cc12cb425ceb97923ff45d17faeec8f2226cc621e0e7e48a67648323e49cf6cc",
  "_created": "2026-06-01T09:55:31.000Z",
  "_published": "2026-06-01T10:01:52.662Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78828121043,
      "time": 186,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7328546572"
    },
    {
      "job": 78828121013,
      "time": 180,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328544699"
    },
    {
      "job": 78828120987,
      "time": 236,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7328564674"
    },
    {
      "job": 78828120993,
      "time": 273,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7328576774"
    },
    {
      "job": 78827682095,
      "time": 159,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328479485"
    },
    {
      "job": 78828120963,
      "time": 95,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328514507"
    },
    {
      "job": 78828121017,
      "time": 152,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7328534017"
    },
    {
      "job": 78828121073,
      "time": 143,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7328531625"
    },
    {
      "job": 78828121016,
      "time": 149,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328532723"
    }
  ],
  "_buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/CWFC-CCFB/J4R",
  "_commit": {
    "id": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
    "author": "Mathieu Fortin <50317186+donenrique24@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #23 from CWFC-CCFB/22-adding-addopens-arguments-to-jvm\n\nAdding the add-opens argument to JVM options in connectToJava function.",
    "time": 1759153013
  },
  "_maintainer": {
    "name": "Mathieu Fortin",
    "email": "mathieu.fortin.re@gmail.com",
    "login": "donenrique24",
    "description": "Working at NRCAN",
    "uuid": 50317186,
    "orcid": "0000-0002-6436-2727"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "utils",
      "version": ">= 3.4",
      "role": "Imports"
    },
    {
      "package": "methods",
      "version": ">= 3.4",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "cwfc-ccfb",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-40",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.2.4",
      "date": "2025-08-13"
    },
    {
      "name": "1.3.0",
      "date": "2025-09-29"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "donenrique24",
      "count": 37,
      "uuid": 50317186
    },
    {
      "user": "achubaty",
      "count": 5,
      "uuid": 3435577
    },
    {
      "user": "jflavoie33",
      "count": 1,
      "uuid": 73243064
    }
  ],
  "_userbio": {
    "uuid": 10555025,
    "type": "organization",
    "name": "Predictive Ecology Group",
    "description": "Ecological forecasting models and data"
  },
  "_downloads": {
    "count": 3,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/J4R"
  },
  "_devurl": "https://github.com/cwfc-ccfb/j4r",
  "_searchresults": 22,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/J4R.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.6",
      "date": "2020-04-07"
    },
    {
      "version": "1.0.7",
      "date": "2020-04-14"
    },
    {
      "version": "1.0.8",
      "date": "2020-07-23"
    }
  ],
  "_exports": [
    "addToClassPath",
    "addUrlToClassPath",
    "as.float",
    "as.JavaArray",
    "as.long",
    "bufferLength",
    "cacheEnv",
    "callJavaGC",
    "callJavaMethod",
    "checkIfClasspathContains",
    "connectToJava",
    "createJavaObject",
    "getAllValuesFromArray",
    "getAllValuesFromListObject",
    "getArrayLength",
    "getClassLoaderPaths",
    "getClassLoaderURLs",
    "getJavaArchitecture",
    "getJavaField",
    "getJavaVersion",
    "getListOfJavaReferences",
    "getMainInstance",
    "getMainLoggerInstance",
    "getMemorySettings",
    "getNbConnections",
    "getNbInstancesInInternalMap",
    "getValueFromArray",
    "interruptJava",
    "is.JavaArray",
    "isConnectedToJava",
    "isJavaArray",
    "J4R_Server_Version",
    "j4r.config.setDefaultJVMMemorySize",
    "j4r.config.setVerbose",
    "killJava",
    "maxVectorLength",
    "mclapply.j4r",
    "setJavaField",
    "setJavaPath",
    "setLogLevel",
    "settingEnv",
    "setValueInArray",
    "shutdownClient",
    "shutdownJava"
  ],
  "_help": [
    {
      "page": "addToClassPath",
      "title": "Dynamically adds a path or a jar file to the classpath.",
      "topics": [
        "addToClassPath"
      ]
    },
    {
      "page": "addUrlToClassPath",
      "title": "Dynamically adds an url to the classpath.",
      "topics": [
        "addUrlToClassPath"
      ]
    },
    {
      "page": "as.float",
      "title": "Cast the object into a Java float type",
      "topics": [
        "as.float"
      ]
    },
    {
      "page": "as.JavaArray",
      "title": "Create a Java array from an R array",
      "topics": [
        "as.JavaArray"
      ]
    },
    {
      "page": "as.long",
      "title": "Cast the object into a Java long type",
      "topics": [
        "as.long"
      ]
    },
    {
      "page": "bufferLength",
      "title": "Length of the buffer when reading from the socket connection.",
      "topics": [
        "bufferLength"
      ]
    },
    {
      "page": "cacheEnv",
      "title": "The cache environment of this package",
      "topics": [
        "cacheEnv"
      ]
    },
    {
      "page": "callJavaGC",
      "title": "Synchronize the Java environment with the R environment",
      "topics": [
        "callJavaGC"
      ]
    },
    {
      "page": "callJavaMethod",
      "title": "Call a Java method",
      "topics": [
        "callJavaMethod"
      ]
    },
    {
      "page": "checkIfClasspathContains",
      "title": "Check if a Library has been loaded",
      "topics": [
        "checkIfClasspathContains"
      ]
    },
    {
      "page": "connectToJava",
      "title": "Connect to Java environment",
      "topics": [
        "connectToJava"
      ]
    },
    {
      "page": "createJavaObject",
      "title": "Create Java objects",
      "topics": [
        "createJavaObject"
      ]
    },
    {
      "page": "getAllValuesFromArray",
      "title": "Returns all the elements of a Java array",
      "topics": [
        "getAllValuesFromArray"
      ]
    },
    {
      "page": "getAllValuesFromListObject",
      "title": "Returns all the elements of a Java instance of List",
      "topics": [
        "getAllValuesFromListObject"
      ]
    },
    {
      "page": "getArrayLength",
      "title": "Return the length of an Array instance",
      "topics": [
        "getArrayLength"
      ]
    },
    {
      "page": "getClassLoaderPaths",
      "title": "Retrieve the paths of the current classloader",
      "topics": [
        "getClassLoaderPaths"
      ]
    },
    {
      "page": "getClassLoaderURLs",
      "title": "Retrieve the URLs of the current classloader",
      "topics": [
        "getClassLoaderURLs"
      ]
    },
    {
      "page": "getJavaArchitecture",
      "title": "Get Java architecture",
      "topics": [
        "getJavaArchitecture"
      ]
    },
    {
      "page": "getJavaField",
      "title": "Get the value of a public field",
      "topics": [
        "getJavaField"
      ]
    },
    {
      "page": "getJavaVersion",
      "title": "Get the current Java version",
      "topics": [
        "getJavaVersion"
      ]
    },
    {
      "page": "getListOfJavaReferences",
      "title": "Provide a list of the Java references",
      "topics": [
        "getListOfJavaReferences"
      ]
    },
    {
      "page": "getMainInstance",
      "title": "Return the main instance in the case of a public server",
      "topics": [
        "getMainInstance"
      ]
    },
    {
      "page": "getMainLoggerInstance",
      "title": "Provide the Reference to the Main Logger",
      "topics": [
        "getMainLoggerInstance"
      ]
    },
    {
      "page": "getMemorySettings",
      "title": "Returns the maximum, total and free memory in Mb",
      "topics": [
        "getMemorySettings"
      ]
    },
    {
      "page": "getNbConnections",
      "title": "The number of connections to the server",
      "topics": [
        "getNbConnections"
      ]
    },
    {
      "page": "getNbInstancesInInternalMap",
      "title": "Return the number of instances stored in the internal map of the Java server",
      "topics": [
        "getNbInstancesInInternalMap"
      ]
    },
    {
      "page": "getValueFromArray",
      "title": "Get a value from an array",
      "topics": [
        "getValueFromArray"
      ]
    },
    {
      "page": "interruptJava",
      "title": "Interrupt the current task on the Java server",
      "topics": [
        "interruptJava"
      ]
    },
    {
      "page": "is.JavaArray",
      "title": "Check if the java.object instance represents an Array",
      "topics": [
        "is.JavaArray"
      ]
    },
    {
      "page": "isConnectedToJava",
      "title": "Checks if the Java server is running",
      "topics": [
        "isConnectedToJava"
      ]
    },
    {
      "page": "isJavaArray",
      "title": "Check if the java.object instance represents an Array",
      "topics": [
        "isJavaArray"
      ]
    },
    {
      "page": "J4R_Server_Version",
      "title": "The current version of the J4R Java server",
      "topics": [
        "J4R_Server_Version"
      ]
    },
    {
      "page": "j4r.config.setDefaultJVMMemorySize",
      "title": "Set a default memory size for the Java Virtual Machine",
      "topics": [
        "j4r.config.setDefaultJVMMemorySize"
      ]
    },
    {
      "page": "j4r.config.setVerbose",
      "title": "Enabling/disabling Verbose",
      "topics": [
        "j4r.config.setVerbose"
      ]
    },
    {
      "page": "killJava",
      "title": "Force the JVM to shut down",
      "topics": [
        "killJava"
      ]
    },
    {
      "page": "length.java.list",
      "title": "Override the default length function",
      "topics": [
        "length.java.list"
      ]
    },
    {
      "page": "length.java.object",
      "title": "Override the default length function",
      "topics": [
        "length.java.object"
      ]
    },
    {
      "page": "maxVectorLength",
      "title": "Maximum length of the vector in the parameters.",
      "topics": [
        "maxVectorLength"
      ]
    },
    {
      "page": "mclapply.j4r",
      "title": "Using multithreading with J4R",
      "topics": [
        "mclapply.j4r"
      ]
    },
    {
      "page": "print.java.list",
      "title": "Print a java.list object",
      "topics": [
        "print.java.list"
      ]
    },
    {
      "page": "print.java.object",
      "title": "Print a java.object instance",
      "topics": [
        "print.java.object"
      ]
    },
    {
      "page": "setJavaField",
      "title": "Set the value of a public field",
      "topics": [
        "setJavaField"
      ]
    },
    {
      "page": "setJavaPath",
      "title": "Set the path to Java",
      "topics": [
        "setJavaPath"
      ]
    },
    {
      "page": "setLogLevel",
      "title": "Set the Logging Level",
      "topics": [
        "setLogLevel"
      ]
    },
    {
      "page": "settingEnv",
      "title": "The settings environment for this package",
      "topics": [
        "settingEnv"
      ]
    },
    {
      "page": "setValueInArray",
      "title": "Set a value in an array",
      "topics": [
        "setValueInArray"
      ]
    },
    {
      "page": "shutdownClient",
      "title": "Shut down R client",
      "topics": [
        "shutdownClient"
      ]
    },
    {
      "page": "shutdownJava",
      "title": "Shut down Java",
      "topics": [
        "shutdownJava"
      ]
    }
  ],
  "_readme": "https://github.com/CWFC-CCFB/J4R/raw/HEAD/README.md",
  "_rundeps": [],
  "_score": 2.6434526764861874,
  "_indexed": false,
  "_nocasepkg": "j4r",
  "_universes": [
    "predictiveecology"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-06-01T09:57:42.000Z",
      "distro": "noble",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "c36931cff330f27380cd5d84e78df760eee3c8029fb0310e322e594925b69451",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-06-01T09:57:39.000Z",
      "distro": "noble",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "6199d7d0179a4984f060eae5d9c5f5f2cd1e1056f956ba82082c508e633d329e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-06-01T09:57:11.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "4f8b82f3132b12f164d4aa24673f36bba698906969cdfec90be60f1e0048e809",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-06-01T09:57:35.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "884748302210ac9d026fafa65ed4aad8cb0ee87babdc7fa3a18df99b04164603",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-06-01T09:57:23.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "ad16ddb62c62f9a4b5bf8825da197c745e23d5fb6314dc8f98b8fd9d78296932",
      "status": "success",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-06-01T09:56:43.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "1d97f363efa299c1ccc15ecbc4be7f406a9f73039a66924fe1718047dc38246d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-06-01T09:56:45.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "71141eea089db10325b2af1bc619de9f6ed97460b6c8416c2a0b4048cfae477a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-06-01T09:56:47.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "a2c88b5297420f2cff3b0250ade1ec70f05d72f8edceb82bfb60f7ad44f59f96",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/26747777775"
    }
  ]
}