{
  "_id": "6af1c47af4a180a2e271f66c",
  "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-11-09 12:54:35 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/b6539bcd41ed9261b5410e7410fca2ed29f070ceffa8beee370c875915490fa2",
  "_filesize": 1683893,
  "_sha256": "b6539bcd41ed9261b5410e7410fca2ed29f070ceffa8beee370c875915490fa2",
  "_expires": "2027-02-17T13:02:48.000Z",
  "_created": "2026-11-09T12:54:35.000Z",
  "_published": "2026-11-09T13:02:50.051Z",
  "_upstream": "https://github.com/CWFC-CCFB/J4R",
  "_status": "success",
  "_maintainer": {
    "name": "Mathieu Fortin",
    "email": "mathieu.fortin.re@gmail.com",
    "login": "donenrique24",
    "description": "Working at NRCAN",
    "uuid": 50317186,
    "orcid": "0000-0002-6436-2727"
  },
  "_jobs": [
    {
      "job": 129172617641,
      "time": 223,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13676027132"
    },
    {
      "job": 129172617565,
      "time": 192,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13676546590"
    },
    {
      "job": 129172617568,
      "time": 116,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13676492492"
    },
    {
      "job": 129172617552,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13676812132"
    },
    {
      "job": 129171143609,
      "time": 189,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13676681401"
    },
    {
      "job": 129172617493,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13675697916"
    },
    {
      "job": 129172617669,
      "time": 126,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13676326791"
    },
    {
      "job": 129172617834,
      "time": 148,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13677101279"
    },
    {
      "job": 129172618067,
      "time": 127,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13675218585"
    }
  ],
  "_buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 38,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/J4R"
  },
  "_devurl": "https://github.com/cwfc-ccfb/j4r",
  "_searchresults": 20,
  "_rbuild": "4.6.2",
  "_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-11-09T12:57:28.000Z",
      "distro": "resolute",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/9490ffe447152d239a72e6cd248d71593cc6562a8d20b426fb9e04b44d733c24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-11-09T12:56:58.000Z",
      "distro": "resolute",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/b9870165eb55e46aa18e283b1d3f7c57d1b09f0f36965a4818c1d50e74fb7418",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-11-09T13:01:18.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/56381749f3f468060609500ea76beb873ea8a21dae9040e09be20f472c1d18b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-11-09T13:01:20.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/a391c530b18c3c1d2cf55d48a57ac0ace1be07d2eb7b611db96e570d8912e3a0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-11-09T12:56:45.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/277d73b5555020eae67381b51c6b72fc7235d940beee2a33078889f4a9bb2d79",
      "status": "success",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-11-09T12:55:37.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/e7b00a0bd035eead8d3ce35d763d484e44e58752a40d15e7a80d1414c9c984af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-11-09T12:55:54.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/c6e24864b6f14ec455772666e26671b2add79cf47fc2bea40f021874a18d8294",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-11-09T12:55:41.000Z",
      "commit": "a4aeb8645ceb0e9fc82642898b853a7c19af726a",
      "fileid": "https://r2.ropensci.org/42a50b999abf0526af8c4b12a13b8328c4f8eefe9e5d98801a8938679c632079",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/predictiveecology/actions/runs/42620482958"
    }
  ]
}