{
  "_id": "6a49291db5e98c4082a0c3e9",
  "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-07-04 15:34:53 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/7cbb03d3adaf54c41c37ac594d3043cde5c86d235e55b1d3fd222bc93b57bfd4",
  "_filesize": 1684970,
  "_sha256": "7cbb03d3adaf54c41c37ac594d3043cde5c86d235e55b1d3fd222bc93b57bfd4",
  "_expires": "2026-10-12T15:39:07.000Z",
  "_created": "2026-07-04T15:34:53.000Z",
  "_published": "2026-07-04T15:39:09.319Z",
  "_jobs": [
    {
      "job": 85144507564,
      "time": 186,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8083038664"
    },
    {
      "job": 85144507556,
      "time": 194,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083039628"
    },
    {
      "job": 85144507560,
      "time": 213,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8083041841"
    },
    {
      "job": 85144507558,
      "time": 219,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083042742"
    },
    {
      "job": 85144328093,
      "time": 150,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083016509"
    },
    {
      "job": 85144507561,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8083028702"
    },
    {
      "job": 85144507584,
      "time": 123,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8083031275"
    },
    {
      "job": 85144507567,
      "time": 137,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8083032771"
    },
    {
      "job": 85144507592,
      "time": 134,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "8083032423"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819",
  "_status": "success",
  "_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": [
    {
      "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",
    "followers": 36,
    "description": "Ecological forecasting models and data"
  },
  "_downloads": {
    "count": 16,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/J4R"
  },
  "_devurl": "https://github.com/cwfc-ccfb/j4r",
  "_searchresults": 23,
  "_rbuild": "4.6.1",
  "_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.6627578316815743,
  "_indexed": false,
  "_nocasepkg": "j4r",
  "_universes": [
    "predictiveecology"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-07-04T15:37:09.000Z",
      "distro": "resolute",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/dd401398f03fb046d4a5784d61e7721b86ccbc1c7e5adca8e38683545d94cc86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-07-04T15:37:16.000Z",
      "distro": "resolute",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/9911ac54d6e37b89524f991ca56121419c15bde71eaf89f4321c1e4994c820fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-07-04T15:36:13.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/18ca70d22c450f3131555836679048d84e9a4d68b86db95cb38038603b8ff310",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-07-04T15:36:19.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/471cdfd38583a9267970f83f03002b7ae93800943d00b7e73791f2832c180b46",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-07-04T15:36:51.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/f19ab025165dc209ebe85cb3891eda1e0dd3d5aa8d7309f76126b7a21c9f1248",
      "status": "success",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-07-04T15:35:54.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/0a7d9f7ced47cabf77b83abe8cc5d864873d4281224f7f6b256e515c060910be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-07-04T15:36:05.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/1986f8b0a25130625662263d7be0d971910da9ce794adde20c61d5fdbc717a8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-07-04T15:35:59.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/6c790e18084b01a9b7f342ac16672fb30dfd6b2e9cbec75c908c453eccbe9118",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/28710956819"
    }
  ]
}