{
  "_id": "6aca79ebfe5cc25786e89daf",
  "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-10-10 16:41:13 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>",
  "_user": "predictiveecology",
  "_type": "src",
  "_file": "J4R_1.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/a628a28b0d09adb9eb846d090215d93aff14139052baac83720d1e490458eff3",
  "_filesize": 1683883,
  "_sha256": "a628a28b0d09adb9eb846d090215d93aff14139052baac83720d1e490458eff3",
  "_expires": "2027-01-18T17:46:17.000Z",
  "_created": "2026-10-10T16:41:13.000Z",
  "_published": "2026-10-10T17:46:19.408Z",
  "_buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114261484937,
      "time": 165,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11676072746"
    },
    {
      "job": 114261484951,
      "time": 150,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11675601970"
    },
    {
      "job": 114261484931,
      "time": 147,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11677755864"
    },
    {
      "job": 114261484942,
      "time": 153,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11677556463"
    },
    {
      "job": 114260974533,
      "time": 153,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11675682778"
    },
    {
      "job": 114261484852,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11676281445"
    },
    {
      "job": 114261484930,
      "time": 132,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11675558146"
    },
    {
      "job": 114261484948,
      "time": 132,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11675727944"
    },
    {
      "job": 114261484874,
      "time": 134,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676072689"
    }
  ],
  "_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"
  },
  "_distro": "resolute",
  "_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": [],
  "_tags": [],
  "_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",
    "followers": 38,
    "description": "Ecological forecasting models and data"
  },
  "_downloads": {
    "count": 19,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/J4R"
  },
  "_devurl": "https://github.com/cwfc-ccfb/j4r",
  "_searchresults": 20,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/J4R.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.3010299956639813,
  "_indexed": false,
  "_nocasepkg": "j4r",
  "_universes": [
    "predictiveecology"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-10T16:43:08.000Z",
      "distro": "resolute",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/62001bccf5771ab4b0124651409bf5ae16dc78fc7343d22e44d107b834456681",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-10T16:43:04.000Z",
      "distro": "resolute",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/e171def453a3c1f99eca4b2041007802c0aef1f279b08970b77628ead2272201",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-10T17:44:10.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/f64c0c7582b1d9738043a89202df806657109153418ce1d297b91e35733437ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-10T17:44:48.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/5cb818241c00a4fe4f6283e8e9df0ca5aaf59e09389f230deb93da59dd0b4a20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-10-10T16:43:11.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/015f541209bbdd7c1746283e304c497f37ef73329a2556e07b21bc60210cc493",
      "status": "success",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-10T16:42:22.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/525814e2de0706275e3fe8b1f8fb8002bfce0d0c8251c159553334dc1b4116d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-10T16:42:24.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/a7cad91b1d18ccff6a2f6921162a915ea67d8d286f5772e6ff23c154205c6bf9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-10T16:42:25.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/029fdddb8a3e3f937c7f4f6d4046f211bf03332dedf6e5d21fce2218292dd948",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/38068497823"
    }
  ]
}