Install packages

library(MolgenisArmadillo)

To be able to test your package as a developer you can install your package using the MolgenisArmadillo. There are a few preconditions in other to use the install_packages function.

Login

You first need to login to the Armadillo (as superuser)

armadillo.login("https://armadillo.dev.molgenis.org",
      "https://armadillo-minio.dev.molgenis.org")
#> [1] "We're opening a browser so you can log in with code B56HHX"

Install packages

If you want to install a package on the Armadillo Rserver you can execute the following endpoint. The selected profile is always default if none is specified.

armadillo.install_packages("data/packages/MolgenisArmadillo_1.1.0.9000.tar.gz")
#> Attempting to install package [ 'data/packages/MolgenisArmadillo_1.1.0.9000.tar.gz' ]
#> Package [ 'data/packages/MolgenisArmadillo_1.1.0.9000.tar.gz' ] installed

In order to install the packages on a specific profile you can specify the profile.

armadillo.install_packages("data/packages/MolgenisArmadillo_1.1.0.9000.tar.gz", profile = "exposome")

You can install multiple packages as well by specifying a vector

armadillo.install_packages(c("data/packages/MolgenisArmadillo_1.1.0.9000.tar.gz", "data/packages/dsBase_6.1.0.9000.tar.gz"))

Whitelist packages

To be able to use new packages in the Armadillo you need to add them to the whitelist. You can do this by executing the following method.

armadillo.whitelist_packages("MolgenisArmadillo")
#> Attempting to whitelist package [ 'MolgenisArmadillo' ]
#> Package [ 'MolgenisArmadillo' ] added to the whitelist
#> Packages whitelisted:
#>  * [ 'dsBase' ]
#>  * [ 'MolgenisArmadillo' ]

You are able to whilist mulitple packages as well using the following line:

armadillo.whitelist_packages(c("MolgenisArmadillo", "dsBase"))
#> Attempting to whitelist package [ 'MolgenisArmadillo' ]
#> Package [ 'MolgenisArmadillo' ] added to the whitelist
#> Attempting to whitelist package [ 'dsBase' ]
#> Package [ 'dsBase' ] added to the whitelist
#> Packages whitelisted:
#>  * [ 'dsBase' ]
#>  * [ 'MolgenisArmadillo' ]