Skip to content

install_github Error (converted from warning) #2084

Description

@jrowen

I'm running into an "Error (converted from warning)" message when using install_github to install on a Centos7 machine running R 3.6 (see error below).

sudo R -e "devtools::install_github('rstudio/shinyloadtest', INSTALL_opts = c('--no-html'))"

R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
...
installing to /usr/lib64/R/library/00LOCK-rlang/00new/rlang/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
Error in file.copy(file.path(R.home("doc"), "html", "R.css"), outman) :
  (converted from warning) problem copying /usr/share/doc/R-3.6.0/html/R.css to /usr/lib64/R/library/00LOCK-rlang/00new/rlang/html/R.css: No such file or directory
* removing ‘/usr/lib64/R/library/rlang’
* restoring previous ‘/usr/lib64/R/library/rlang’
Error in i.p(...) :
  (converted from warning) installation of package ‘rlang’ had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted

On the other hand, if I install the problem library individually, I don't run into any errors.

sudo R -e "install.packages(c('rlang'), repos=c('https://cloud.r-project.org/'))"
...
* DONE (rlang)
Warning in file.create(f.tg) :
  cannot create file '/usr/share/doc/R-3.6.0/html/packages.html', reason 'No such file or directory'
Warning in utils::make.packages.html(.Library, docdir = R.home("doc")) :
  cannot update HTML package index

The downloaded source packages are in
        ‘/tmp/Rtmp2AJsYo/downloaded_packages’
Updating HTML index of packages in '.Library'
Warning messages:
1: In file.create(f.tg) :
  cannot create file '/usr/share/doc/R-3.6.0/html/packages.html', reason 'No such file or directory'
2: In make.packages.html(.Library) : cannot update HTML package index
>
>

Now, if I run install_github on the original library, the process proceeds along until eventually encountering a similar error on another dependency.

* installing *source* package ‘clipr’ ...
** package ‘clipr’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
Error in file.copy(file.path(R.home("doc"), "html", "R.css"), outman) :
  (converted from warning) problem copying /usr/share/doc/R-3.6.0/html/R.css to /usr/lib64/R/library/00LOCK-clipr/00new/clipr/html/R.css: No such file or directory
* removing ‘/usr/lib64/R/library/clipr’
* restoring previous ‘/usr/lib64/R/library/clipr’
Error in i.p(...) :
  (converted from warning) installation of package ‘clipr’ had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted

This seems to be related to warnings being elevated to errors at some point along the installation process. Any guidance on how to resolve these errors would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions