AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Install r package linux12/18/2023 ![]() A list of available mirrors will be presented.Select a mirror from the pop-up list without specifying the CRAN mirror - install.packages ("package_name_here") – or click “Packages -> Select CRAN Mirror” on the top menu bar.Specify the Duke mirror in one of three ways: You can get more information about the install.packages( ) command by running ?install.R Packages are accessible via CRAN only from the Duke CRAN mirror. If you need to add an additional package later, run install.packages( ) from within R to install what you need. If you leave "packagename" blank, you'll get a list of all available packages. To install a package (replace 'packagename' with the actual name of the package you want installed). ![]() Install.packages('packagename',"~/Rlibs","") "/space/hbrown/Rlibs" "/group/statsoft/Rlibs64" libPaths(), you should see something similar to: cshrc and then start R (bash users should source. bashrc for your shell, it will likely be. bashrc to set the R_LIBS environment variable. Create a directory in your home directory you would like to install the R packages, e.g.Make sure R is NOT running before you start. ![]() You can check to see what your R library search path is by starting R and running. Most of the information that follows is taken from the R Installation and Administration Managing libraries section. If you are logged into a linux machine in the 346 SH lab or a faculty/RA/TA box in SH, your R_LIBS environment variable has been set already to include the statsoft collection. Those packages are in /group/statsoft/Rlibs or /group/statsoft/Rlibs64 depending on the architecture of the machine. On the managed Linux machines in the Statistics department there are a number of add-on packages for R that are managed by the statsoft group. Installing additional R packages on Linux
0 Comments
Read More
Leave a Reply. |