Closed abduazizR closed 2 days ago
I've never seen this. Do you have any "interesting" startup files? Meaning: site or user-level or project-specific .Rprofile
or similar.
Oh, yeah, I see this is an renv project. Can you reproduce this warning outside of Positron?
This renv vignette on "renv in packages" https://github.com/rstudio/renv/blob/1f99d7d8ce7829fa67f3295f5a447e3df09c7a38/vignettes/packages.Rmd#L75
has this
For package projects using renv, a library path outside of the project
directory will be used instead. As an example, on macOS, this might look like:
.libPaths() [1] "/Users/kevin/Library/Caches/org.R-project.R/R/renv/library/example-552f6e80/R-4.3/aarch64-apple-darwin20" [2] "/Users/kevin/Library/Caches/org.R-project.R/R/renv/sandbox/R-4.3/aarch64-apple-darwin20/ac5c2659"
Note the `example-552f6e80` in the place where `macos` is above in the session info output
[1] /Users/abdullah/Dissertation/dissertation_work/renv/library/macos/R-4.4/aarch64-apple-darwin20 [2] /Users/abdullah/Library/Caches/org.R-project.R/R/renv/sandbox/macos/R-4.4/aarch64-apple-darwin20/f7156815
that certainly seems like a place to start. Possibly this issue only comes up when using renv in an R package
It seems like the addition of the macos/
bit is relatively new, from here:
https://github.com/rstudio/renv/commit/a65b13f558fc38e24e8309a935f577d946e488d9
I wonder @kevinushey will immediately spot the problem.
@abduazizR if there is anything else you can provide (like a video) of what you were doing when this warning popped up, that would be helpful.
I've got R 4.5.0 along with the latest renv in an renv project and don't see these warnings
> .libPaths()
[1] "/Users/davis/Desktop/posit-user-training/renv/library/macos/R-4.5-r86792/aarch64-apple-darwin20"
[2] "/Users/davis/Library/Caches/org.R-project.R/R/renv/sandbox/macos/R-4.5-r86792/aarch64-apple-darwin20/4cd76b74"
I tried working the last couple of days running different things to get the message but I don't get it anymore for some reason! I will post it if I see it gain
I'm going to optimistically chalk this up to some unhappy renv state that you have successfully worked through 🤞
I keep getting this warning message in R console and I am not sure if there is an R package called
macos
that I need to installSession Info