-
Hello All, I'm new to RStudio (and programming in general). I cannot generate plots after applying arcsinh transformation within the simple discovery workflow. I input the command exactly as worded (copy and paste) from the protocol page for simple discovery workflow, which is: for(i in transformed.cols){ Here is the error message that pops up: Much appreciated! -Kayla |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I've fixed the issue. If you want to know how, comment and I'll explain. |
Beta Was this translation helpful? Give feedback.
-
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/kp299/Documents/R/R-4.0.3/packages") Of course, you'd want to place your own path within the (""). You can check whether the path was accepted by typing the command .libPaths For whatever reason though, you have to repeat this .libPaths command to update the path after each new session of RStudio or else RStudio will give you the error of "package not found" when loading packages. Not sure how to permanently fix but it works for me. |
Beta Was this translation helpful? Give feedback.
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…