Requesting code and packages

Secure Environment for Analysing Data (SEAD)

How to access, request or move code, code libraries and packages to your project

Released
10/11/2023

How to access code and packages

There are various recommended means for you to access, request or move code, code libraries and packages to your project in order to undertake your analysis in SEAD. You can access code through the following:

  • the ABS administered shared library (library drive) which holds a large volume of approved code from all primary software languages available (R, Python, STATA, SAS) and accompanying documentation
  • the Posit Package Manager (shortcut on the workspace desktop providing access to Python and R packages)
  • a request to your SEAD administrators for loading basic/simple self-written code in text format
  • a request to your SEAD administrators for loading from these recommended repositories:

Managing your R and Python packages

If you are working with a specific set of R and/or Python packages, you can now manage these using the Package Manager shortcut on your desktop.

Package Manager desktop icon

In the Package Manager, click 'Get Started' to navigate to the available packages. You can use this tool to search for packages (in the left column) and install the packages you want to use for your project. If the packages you need are not listed, you can request them using the Contact us page.

Package Manager page
Package Manager inside

Accessing earlier versions of R and Python Packages from Posit

The following describes how to access different, older, versions of packages from Posit depending on the language. If you require a new package, newer or older version of a package from CRAN for R or PyPi for Python, please submit a request for packages to your SEAD administrator in the first instance. Packages not from CRAN or PyPi will not be available through Posit and these will be subject to a separate security screening processing before they are approved for access in the DataLab if the process is successful. 

To access different package versions in R 

These files can be downloaded from Posit using your chosen R environment through the ‘devtools’ package e.g., ‘devtools::install_version(“your package”, version=“your package version”)’. You will be able to see the available package version for R at the bottom of the Posit page for that package. An example for the ‘dplyr’ package can be seen below.

R diplyr archived

To access different package versions in Python 

Accessing older python package versions can be done when installing the package through ‘pip’ e.g., ‘pip install pandas==2.1.0’. The available versions of each of the python packages can also be seen at the bottom of the relevant Posit page. An example for the ‘pandas’ package can be seen below. 

Python pandas archive
Back to top of the page