Skip to content

install_github() fails when no write access to site library and no personal library created yet #499

@michaelmhoffman

Description

@michaelmhoffman
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"                                                                                                    
Copyright (C) 2018 The R Foundation for Statistical Computing                                                                                           
Platform: x86_64-pc-linux-gnu (64-bit)                                                                                                                  
                                                                                                                                                        
R is free software and comes with ABSOLUTELY NO WARRANTY.                                                                                               
You are welcome to redistribute it under certain conditions.                                                                                            
Type 'license()' or 'licence()' for distribution details.                                                                                               
                                                                                                                                                        
  Natural language support but running in an English locale                                                                                             
                                                                                                                                                        
R is a collaborative project with many contributors.                                                                                                    
Type 'contributors()' for more information and                                                                                                          
'citation()' on how to cite R or R packages in publications.                                                                                            
                                                                                                                                                        
Type 'demo()' for some demos, 'help()' for on-line help, or                                                                                             
'help.start()' for an HTML browser interface to help.                                                                                                   
Type 'q()' to quit R.                                                                                                                                   
                                                                                                                                                        
> remotes::install_github("serrat839/mRkov")                                                                                                            
Downloading GitHub repo serrat839/mRkov@master                                                                                                          
Skipping 1 packages not available: ISOcodes                                                                                                             
Installing 12 packages: rtweet, tidytext, stopwords, wordcloud, hms, SnowballC, ISOcodes, progress, hunspell, generics, tokenizers, janeaustenr         
Installing packages into ‘/usr/local/lib/R/site-library’                                                                                                
(as ‘lib’ is unspecified)                                                                                                                               
Error: Failed to install 'mRkov' from GitHub:                                                                                                           
  (converted from warning) 'lib = "/usr/local/lib/R/site-library"' is not writable                                                                      
> Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS=TRUE)                                                                                                    
> remotes::install_github("serrat839/mRkov")                                                                                                            
Downloading GitHub repo serrat839/mRkov@master                                                                                                          
Skipping 1 packages not available: ISOcodes                                                                                                             
Installing 12 packages: rtweet, tidytext, stopwords, wordcloud, hms, SnowballC, ISOcodes, progress, hunspell, generics, tokenizers, janeaustenr         
Installing packages into ‘/usr/local/lib/R/site-library’                                                                                                
(as ‘lib’ is unspecified)                                                                                                                               
Warning in i.p(...) :                                                                                                                                   
  'lib = "/usr/local/lib/R/site-library"' is not writable                                                                                               
Would you like to use a personal library instead?  (y/n) y                                                   

...

Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’                          
                                                                                                             
The downloaded source packages are in                                                                        
        ‘/tmp/RtmptGS1IL/downloaded_packages’                                                                
✔  checking for file ‘/tmp/RtmptGS1IL/remoteseb878f42ebd/serrat839-mRkov-d29973e/DESCRIPTION’ (574ms)        
─  preparing ‘mRkov’:                                                                                        
✔  checking DESCRIPTION meta-information                                                                     
─  checking for LF line-endings in source and make files and shell scripts                                   
─  checking for empty or unneeded directories                                                                
─  looking to see if a ‘data/datalist’ file should be added                                                  
─  building ‘mRkov_0.0.0.9000.tar.gz’                                                                        
                                                                                                             
Installing package into ‘/usr/local/lib/R/site-library’                                                      
(as ‘lib’ is unspecified)                                                                                    
Warning in i.p(...) :                                                                                        
  'lib = "/usr/local/lib/R/site-library"' is not writable                                                    
Would you like to use a personal library instead?  (y/n) y
Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’
There were 13 warnings (use warnings() to see them)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions