Re: [R-SIG-Mac] Permission issues running R in terminal
On 19/02/2024 5:22 a.m., peter dalgaard wrote: To be precise: execute access, not write access. However, neither that nor deleting the dir gives the exact "Operation not permitted" error. I had deleted the directory using the Finder, so "cd .." led to "~/.Trash". If I delete it using "rm -r", I get a slightly different message. Duncan -pd On 19 Feb 2024, at 10:43 , Jeroen Ooms wrote: On Sun, Feb 18, 2024 at 11:57 PM Duncan Murdoch wrote: I wanted to see the options to R CMD INSTALL, and was surprised to see this output: $ R CMD INSTALL --help shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted Error in tools:::.install_packages() : current working directory cannot be ascertained shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted I installed R from CRAN, and am not running the current version: I'm still on 4.3.1, with OS also kind of old: Monterey 12.7.3, so I was surprised by this. Is anyone else seeing it? This happens when you don't have write access in the current dir: mkdir /tmp/test cd /tmp/test chmod 0 . R CMD INSTALL --help [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Permission issues running R in terminal
Yes, that was it. Thanks! Duncan On 19/02/2024 4:28 a.m., peter dalgaard wrote: I have the same setup, and not seeing this. That is, _unless_ I try from a shell running in a deleted diretory: Peters-iMac:BUILD-dist pd$ R CMD INSTALL --help shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory ... (because BUILD-dist is wiped and re-created by the automatic builds, but the shell still refers to the unlinked directory.) -pd On 18 Feb 2024, at 23:57 , Duncan Murdoch wrote: I wanted to see the options to R CMD INSTALL, and was surprised to see this output: $ R CMD INSTALL --help shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted Error in tools:::.install_packages() : current working directory cannot be ascertained shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted I installed R from CRAN, and am not running the current version: I'm still on 4.3.1, with OS also kind of old: Monterey 12.7.3, so I was surprised by this. Is anyone else seeing it? Duncan Murdoch ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Permission issues running R in terminal
To be precise: execute access, not write access. However, neither that nor deleting the dir gives the exact "Operation not permitted" error. -pd > On 19 Feb 2024, at 10:43 , Jeroen Ooms wrote: > > On Sun, Feb 18, 2024 at 11:57 PM Duncan Murdoch > wrote: > >> I wanted to see the options to R CMD INSTALL, and was surprised to see >> this output: >> >> $ R CMD INSTALL --help >> shell-init: error retrieving current directory: getcwd: cannot access >> parent directories: Operation not permitted >> shell-init: error retrieving current directory: getcwd: cannot access >> parent directories: Operation not permitted >> shell-init: error retrieving current directory: getcwd: cannot access >> parent directories: Operation not permitted >> shell-init: error retrieving current directory: getcwd: cannot access >> parent directories: Operation not permitted >> shell-init: error retrieving current directory: getcwd: cannot access >> parent directories: Operation not permitted >> shell-init: error retrieving current directory: getcwd: cannot access >> parent directories: Operation not permitted >> Error in tools:::.install_packages() : >> current working directory cannot be ascertained >> shell-init: error retrieving current directory: getcwd: cannot access >> parent directories: Operation not permitted >> >> I installed R from CRAN, and am not running the current version: I'm >> still on 4.3.1, with OS also kind of old: Monterey 12.7.3, so I was >> surprised by this. Is anyone else seeing it? >> > > This happens when you don't have write access in the current dir: > > mkdir /tmp/test > cd /tmp/test > chmod 0 . > R CMD INSTALL --help > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Permission issues running R in terminal
On Sun, Feb 18, 2024 at 11:57 PM Duncan Murdoch wrote: > I wanted to see the options to R CMD INSTALL, and was surprised to see > this output: > > $ R CMD INSTALL --help > shell-init: error retrieving current directory: getcwd: cannot access > parent directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access > parent directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access > parent directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access > parent directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access > parent directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access > parent directories: Operation not permitted > Error in tools:::.install_packages() : >current working directory cannot be ascertained > shell-init: error retrieving current directory: getcwd: cannot access > parent directories: Operation not permitted > > I installed R from CRAN, and am not running the current version: I'm > still on 4.3.1, with OS also kind of old: Monterey 12.7.3, so I was > surprised by this. Is anyone else seeing it? > This happens when you don't have write access in the current dir: mkdir /tmp/test cd /tmp/test chmod 0 . R CMD INSTALL --help [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Permission issues running R in terminal
I have the same setup, and not seeing this. That is, _unless_ I try from a shell running in a deleted diretory: Peters-iMac:BUILD-dist pd$ R CMD INSTALL --help shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory ... (because BUILD-dist is wiped and re-created by the automatic builds, but the shell still refers to the unlinked directory.) -pd > On 18 Feb 2024, at 23:57 , Duncan Murdoch wrote: > > I wanted to see the options to R CMD INSTALL, and was surprised to see this > output: > > $ R CMD INSTALL --help > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Operation not permitted > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Operation not permitted > Error in tools:::.install_packages() : > current working directory cannot be ascertained > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Operation not permitted > > I installed R from CRAN, and am not running the current version: I'm still > on 4.3.1, with OS also kind of old: Monterey 12.7.3, so I was surprised by > this. Is anyone else seeing it? > > Duncan Murdoch > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[R-SIG-Mac] Permission issues running R in terminal
I wanted to see the options to R CMD INSTALL, and was surprised to see this output: $ R CMD INSTALL --help shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted Error in tools:::.install_packages() : current working directory cannot be ascertained shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted I installed R from CRAN, and am not running the current version: I'm still on 4.3.1, with OS also kind of old: Monterey 12.7.3, so I was surprised by this. Is anyone else seeing it? Duncan Murdoch ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac