Closed IlmariTamminen closed 1 year ago
Sorry, but I have no experience with podman
.
time="2023-05-24T12:18:29+03:00" level=error msg="1 error occurred:\n\t* open C:\some_directories\renv\sandbox\R-4.2\x86_64-pc-linux-gnu\25ebdc09\KernSmooth: The file cannot be accessed by the system.\n\n\n"
The error these suggests you lack the requisite permissions to use the renv
sandbox; you might need to manually fix those permissions, or delete that sandbox folder (as root).
Sorry, but I have no experience with
podman
.time="2023-05-24T12:18:29+03:00" level=error msg="1 error occurred:\n\t* open C:\some_directories\renv\sandbox\R-4.2\x86_64-pc-linux-gnu\25ebdc09\KernSmooth: The file cannot be accessed by the system.\n\n\n"
The error these suggests you lack the requisite permissions to use the
renv
sandbox; you might need to manually fix those permissions, or delete that sandbox folder (as root).
Many thanks for your help! Okay, this is a little bit complicated because I am not familiar (yet) with the renv. Some relevant background could help me with the troubleshooting. Considering the context and what has been done, what is this "sandboxing" and why this feature turned on? Is it default behaviour when the initialization is done?
It is pretty odd that the podman even knows about the existence of the renv. The virtual Linux and R instances were destroyed long time ago with the shutdown container in which the renv was tested. I do see that a renv folder appeared in the directory (mounted earlier in the now destroyed container) on the Windows where my dockerfile is, the file that determines how my image is build. But the dockerfile hasn't been changed, the Rocker image used as the base for building my image hasn't changed, and as said eventually everything were wiped out during the reinstallations. Thus, where exactly should I look for changes on the computer? Excluding the appearance of the renv folder, and possibly everything that is related to the virtual Linux environment, because those should be reset now.
Many thanks for your help! Okay, this is a little bit complicated because I am not familiar (yet) with the renv. Some relevant background could help me with the troubleshooting. Considering the context and what has been done, what is this "sandboxing" and why this feature turned on? Is it default behaviour when the initialization is done?
This is described in https://rstudio.github.io/renv/dev/reference/sandbox.html -- in essence, it's a pseudo-library of base / recommended R packages, and it's marked as non-writable so users don't accidentally install packages into that path when using renv
.
https://rstudio.github.io/renv/dev/reference/paths.html may also be helpful for seeing where renv
stores different global state.
Since it's now been two weeks, and it doesn't seem like there's anything renv needs to do, I'm going to close this issue.
Sorry, I had my own delays and pending questions for Podman. Maybe the issue relates to the Podman, here is a new issue to their repository: https://github.com/containers/podman/issues/18916
Hi.
I was experimenting with the renv package in a rocker/r-ver:4.2.1 container run with the Podman 4.5.0. To build the image and deploy the containers, I use the podman-machine-default in Windows 10 with WSL2. I openend a bash terminal into the running rootless Rocker container, started R 4.2.1 instance there, ran
install.packages("renv")
and then:Because the previous run was problematic, I also tried
init(bare = TRUE)
with similar results. Then, when I tried to build another Rocker image (which shouldn't have nothing to do with the renv) the Podman failed:Now I am stuck without working
podman build
. I believed that experimenting with the renv in the rootless Rocker container would be safe, but something obviously went wrong. As carefully as I can, I removed and reinstalled both the Podman and the WSL following these recommendations, but the issue didn't gone away: https://superuser.com/questions/1619233/completely-reinstall-wsl/1755410#1755410So, how could I fully revert back to the state where I was before trying the renv package and make the
podman build
etc. work again? Furthermore, how could I use the renv package on a Linux computer, running R/4.2.1-foss-2022a module, for installing the exactly same R package versions in the Rocker 4.2.1 image build on the Windows computer? I do not want to change anything "dramatic" or update nothing on the Linux computer due these risks, just transfer the information about the installed R packages and their versions to my Rocker image on Windows while being absolutely sure that nothing is screwed on the computers. I don't have an R project on the Linux computer if it matters, I just run R scripts there.