Install R/Python Packages from Local File
The following steps are helpful to install the packages when you need to install a package which is not available from Brown Package Archive Mirrors. For example, you may need to install an R package from GitHub repo. But the
remotes::install_github("<package_name>")command doesn't work on the Stronghold workstation. You can follow the instruction below to download and transfer the package to your Stronghold workstation and install it from there.
For example, if the package is a Git repo, that can be downloaded via the
git clone https://github.com/file_path/file_name.git
Please use the following commands in a terminal to install the downloaded R/Python package:
Start an R session in the terminal, and install the downloaded package via
> install.packages("/<file_path>/<package_name>/", repos = NULL, type = "source")
Please use the following command to install the package:
python3 -m pip install <package_source_folder_path>
If the download package file is a
.tar.gzfile, you can install the package directly from the
python3 -m pip install <path>/package_name.tar.gz
Installing a specific package may require loading other dependent modules.