Scope
This page describes special App Configuration for some Applications
R - Package Location
To change the location of the R packages, perform the steps below:
- In an appropriate location of your choice (e.g. your Documents folder), create a folder and name it e.g. R4Libs.
- Start R
- Click File/New Script
- Enter this line:
.libPaths("pathtofolder")
You have to replace pathtofolder with the path to the folder that you created in step 1. - IMPORTANT: in the path you have to replace all \ by \\ . The resulting path could look like this:
.libPaths("c:\\users\\wyssc\\Documents\\R4Libs") - Click File/Save
- The Save dialog appears. Navigate to your Documents folder
- In the "Save as type" dropdown list, choose "All files (*.*)"
- In the "File name" field, enter
.Rprofile
(It is essential that the file is save on your Documents folder, and the file name MUST start with a period.) - Click "Save"
- Restart R and check if the new path has been applied by entering .libPaths()
- Install an R package and check that it is saved to the folder you specified in step 1 and 4.
If you want to change the location of R packages later on, edit the .Rprofile file using Notepad. You might have to check the "Hidden items" in the View settings of explorer to see the file.
Stata - Package Location
- Go to your Documents folder), create a new file with the Name "sysprofile.do"
- The content of the File has to be like
sysdir set PLUS "U:/My Documents/STATA/PLUS/"
sysdir set PERSONAL "U:/My Documents/STATA/PERSONAL/"
U: is your Homedrive, that could be different like Z, W or another letter, ask your IT if you are not sure.
Then the Packages will be installed in those Folders and not in C:Ado or in the Appv Location of the Stata Package
If you start Stata after you createt that sysprofile.do File it should show something like this
. doedit "\\nash\mtec-home\username\My Documents\sysprofile.do"
See Also
https://www.isg.hest.ethz.ch/en/anleitungen/appv/special-app-configuration.html
https://www.stata.com/support/faqs/programming/profile-do-file/
https://tdx.cornell.edu/TDClient/61/Portal/KB/ArticleDet?ID=363