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:

  1. In an appropriate location of your choice (e.g. your Documents folder), create a folder and name it e.g. R4Libs.
  2. Start R
  3. Click File/New Script
  4. Enter this line:
    .libPaths("pathtofolder")
    You have to replace pathtofolder with the path to the folder that you created in step 1.
  5. IMPORTANT: in the path you have to replace all \ by \\ . The resulting path could look like this:
    .libPaths("c:\\users\\wyssc\\Documents\\R4Libs")
  6. Click File/Save
  7. The Save dialog appears. Navigate to your Documents folder
  8. In the "Save as type" dropdown list, choose "All files (*.*)"
  9. 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.)
  10. Click "Save"
  11. Restart R and check if the new path has been applied by entering .libPaths()
  12. 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

  1. Go to your Documents folder), create a new file with the Name "sysprofile.do"
  2. 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

https://www.techtips.surveydesign.com.au/post/the-profile-and-sysprofile-do-files-automating-your-stata-start-up