Jump to content

How to keep multiple version of the same R/Python library


Andy Pang

Recommended Posts

One can modify the library path when installing and loading packages in R to allow for multiple versions of the same package to be used by different R scripts as needed.

Take a look at the following article which shoes how one could use the lib.loc parameter to install.package() and library().

https://www.rdocumentation.org/packages/base/versions/3.5.2/topics/library

As for Python, one can simply use pip install somelib==1.2.3.4at the top of their notebook code to pull down that specific version.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...