julia_package | R Documentation |
Using julia packages.
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)
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. |
julia_installed_package will return the version number of the julia package, "nothing" if the package is not installed.
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.