julia_package: Using julia packages.

julia_packageR Documentation

Using julia packages.

Description

Using julia packages.

Usage

julia_install_package(pkg_name_or_url)

julia_installed_package(pkg_name)

julia_install_package_if_needed(pkg_name)

julia_update_package(...)

julia_library(pkg_name)

Arguments

pkg_name_or_url

the julia package name or url.

pkg_name

the julia package name.

...

you can provide none or one or multiple julia package names here.

Value

julia_installed_package will return the version number of the julia package, "nothing" if the package is not installed.

Examples

if (identical(Sys.getenv("AUTO_JULIA_INSTALL"), "true")) { ## julia_setup is quite time consuming
  ## doing initialization and automatic installation of Julia if necessary
  julia_setup(installJulia = TRUE)
  julia_install_package("DataFrames")
  julia_installed_package("DataFrames")
  julia_install_package_if_needed("DataFrames")
  julia_update_package("DataFrames")
  julia_library("DataFrames")
}


JuliaCall documentation built on Sept. 8, 2022, 5:10 p.m.