How to fix RStudio’s package installation on Windows 10

  1. Create the local folder you want to use for packages.
  2. Give yourself permission to change your RProfile file.
  3. Change your RProfile file.

1. Create the local folder

2. Change permissions

  1. Navigate to C:\Program Files\R\R-4.0.0\library\base\.
  2. Double-click the base folder so that you’re looking at its contents, which include the R subfolder.
  3. Right-click on the R subfolder and select Properties.
  4. Click on the Security tab.
  5. Click on the Edit button.
  6. Scroll down the Group or user names pane and click on the Users line near the bottom of that list.
  7. In the Permissions for users pane click on the Full Control checkbox under Allow.
  8. Click OK and OK again to save and exit these windows.
Note that Hawk is the name of my machine. You machine will likely have a different name.

3. Edit the RProfile file

Social Psychologist and advocate for scientific validity. I research the psychology of envy. I also develop new theory and tools for methodological validity.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Android Intent

Why are we releasing app.avocode.com out of Beta and shutting down manager.avocode.com?

Golang: Using Regex Pattern Matching with net/http

When ACID went Sour

Ulord Project Progress (From August 12, 2021 to August 18, 2021)

GraphLinq IDE v1.0.6 — Engine Upgrades, CEX and Blocks Integrations + Real-Time Use-Cases

Internals of the Panduring Process Model

CockroachDB with Java using JDBC

Cockroach Console

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
José Duarte, PhD

José Duarte, PhD

Social Psychologist and advocate for scientific validity. I research the psychology of envy. I also develop new theory and tools for methodological validity.

More from Medium

Automate ODK survey forms using XLSform, Python or R

How to use Rstudio with different versions of R

Compiling R Package from Source Code

Data & Information