r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.39k stars 760 forks source link

Local installation of devtools #2462

Closed jcabrerazuniga closed 2 years ago

jcabrerazuniga commented 2 years ago

I tried installing devtools on a shared Centos 7 server:

install.packages("devtools") Installing package into ‘/home/jcabrerazuniga/R/x86_64-pc-linux-gnu-library/4.2’ (as ‘lib’ is unspecified) Error in install.packages("devtools") : unable to create temporary directory ‘/tmp/Rtmpey9yAc/downloaded_packages’ In addition: Warning message: In dir.create(tmpd) : cannot create dir '/tmp/Rtmpey9yAc/downloaded_packages', reason 'No such file or directory'

As I can see the installation tries to use a tmp folder that my account has no access to. Could it be possible to use a tmp file within the user's folder to do the installation?

jennybc commented 2 years ago

This issue doesn't appear to be a bug report or a specific feature request, so it's more suitable for RStudio Community.

jcabrerazuniga commented 2 years ago

Possibly you are right, but that permissions issue will be a problem on Linux systems. If the user of R does not have admin privileges then this problem will stop that user from installing devtools.

Thanks Jose


From: Jennifer (Jenny) Bryan @.> Sent: Wednesday, August 31, 2022 11:48 AM To: r-lib/devtools @.> Cc: Jose Carlos Cabrera Zuniga @.>; Author @.> Subject: Re: [r-lib/devtools] Local installation of devtools (Issue #2462)

[[-- External - this message has been sent from outside the University --]]

This issue doesn't appear to be a bug report or a specific feature request, so it's more suitable for RStudio Communityhttps://urldefense.com/v3/__https://community.rstudio.com__;!!KXH1hvEXyw!bf5NiIiWJ2IANFV_S2FJpa8qGNfSZzn_cwehy2Tslb1ve2h4UArep-bmS3X51g1UwQKHXw8YmvbK6d3f5UfGW3XXfGnfq7SIuA$.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/r-lib/devtools/issues/2462*issuecomment-1233238088__;Iw!!KXH1hvEXyw!bf5NiIiWJ2IANFV_S2FJpa8qGNfSZzn_cwehy2Tslb1ve2h4UArep-bmS3X51g1UwQKHXw8YmvbK6d3f5UfGW3XXfGkb9Q9nyQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AGTUNEUOCBAKZRT2447Q36LV36LHRANCNFSM57BMMJBA__;!!KXH1hvEXyw!bf5NiIiWJ2IANFV_S2FJpa8qGNfSZzn_cwehy2Tslb1ve2h4UArep-bmS3X51g1UwQKHXw8YmvbK6d3f5UfGW3XXfGlYIfCGTg$. You are receiving this because you authored the thread.Message ID: @.***>

jennybc commented 2 years ago

I don't see how this is specific to devtools, though. Nor how it could be fixed in devtools.

jcabrerazuniga commented 1 year ago

This is for Dev-tools installation process and this, normally, is developer's responsibility. I tried a local installation and the problem appeared. I had to contact the admin to make that tmp folder accessible from my account as typically this folder is for admins only. As your installation process could access my local folder, why not the installation process could use a tmp folder created within the local user account. Just a suggestion.

Thanks


From: Jennifer (Jenny) Bryan @.> Sent: Wednesday, August 31, 2022 4:50 PM To: r-lib/devtools @.> Cc: Jose Carlos Cabrera Zuniga @.>; Author @.> Subject: Re: [r-lib/devtools] Local installation of devtools (Issue #2462)

[[-- External - this message has been sent from outside the University --]]

I don't see how this is specific to devtools, though. Nor how it could be fixed in devtools.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/r-lib/devtools/issues/2462*issuecomment-1233509804__;Iw!!KXH1hvEXyw!fRkAn0D14CG-p9ycP0DpxZWYZNs7u0YiT5CYkof4jcyJ8NMTsjaAAESjcVEcycjMhQBSSu_pVU7IDVAsxX6UqODbbv5sVW_4Nw$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AGTUNETVAIQZRRHR32JOLGLV37OR7ANCNFSM57BMMJBA__;!!KXH1hvEXyw!fRkAn0D14CG-p9ycP0DpxZWYZNs7u0YiT5CYkof4jcyJ8NMTsjaAAESjcVEcycjMhQBSSu_pVU7IDVAsxX6UqODbbv5jeeN-IQ$. You are receiving this because you authored the thread.Message ID: @.***>