Skip to content

Cannot generate plots in RStudio #112

Answered by kaparr94
kaparr94 asked this question in Help
Discussion options

You must be logged in to vote

The error messages shown in my original post were being caused by the location of the packages within my computer. I had R (including all its subfolders and thus the libraries) saved to my OneDrive, which aren't technically located on my local computer. R packages cannot load unless they're saved to your local C disk and this will cause the "pkginfo not found" error.

To fix: I copied the entire R folder from its location within my OneDrive folder and pasted it to my C drive. For me, the new path became "C:/Users/kp299/Documents/R/R-4.0.3/packages"

In order to update this new path so that RStudio knows where to look for packages when loading them, I used the command .libPaths("C:/Users/kp2…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tomashhurst
Comment options

@kaparr94
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kaparr94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants