Stronghold
HomeServicesDocumentationBlog
  • Highly Secure Computing (Stronghold)
  • Data Management
    • SFTP Data Transfers
      • Data Imports
      • Data Exports
    • HTTPS Direct Downloads
      • FastX 3
      • FastX 2
    • Data Storage
    • Globus Transfers
      • Windows Tenants
      • Adding New Users
  • Usage
    • New Tenant Onboarding
    • Windows Environments
      • Access from Mac
      • Access from Windows
      • RDP Gateway from Mac
      • RDP Gateway from Windows
    • Linux Environments
      • FastX 3
      • FastX 2
  • Software
    • Windows Standard Software
    • Linux Standard Software
      • Julia
    • Package Archive Mirrors
      • BioConductor Mirror
      • CRAN Mirror
      • PyPI Mirror
    • Install R/Python Packages from Local File
    • Jupyter Lab on Linux Workstations
    • Changing the temporary folder for softwares
      • SAS
      • STATA
      • RStudio
    • Changing Default Package install locations on Windows
      • Python (Pypi packages)
      • R (CRAN Packages)
      • Stata packages
  • Git
    • Git Sync
    • GitLab
  • Access & Security Groups
    • User Groups
    • Lifespan Staff Access
  • Multi-Protocol Access
    • Access Same Data from Windows and Linux Workstations
Powered by GitBook
On this page

Was this helpful?

  1. Software

Install R/Python Packages from Local File

PreviousPyPI MirrorNextJupyter Lab on Linux Workstations

Last updated 2 years ago

Was this helpful?

The following steps are helpful to install the packages when you need to install a package which is not available from Brown . 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.

1. Download the package to local machine.

For example, if the package is a Git repo, that can be downloaded via the git clone command:

git clone https://github.com/file_path/file_name.git

2. Please follow the instruction to transfer the package file from local machine to your personal directory or a shared directory on Stronghold workstation.

3. Install the downloaded package on Stronghold workstation.

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 command:

R
> 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.gz file, you can install the package directly from the .tar.gz file:

python3 -m pip install <path>/package_name.tar.gz

Installing a specific package may require loading other dependent modules.

Package Archive Mirrors
Data Import