Pkgdown: Failure to install in R.3.4.0 due to pkgload

Created on 22 Jun 2017  路  3Comments  路  Source: r-lib/pkgdown

I have tried to install from github via devtools::install_github("hadley/pkgdown") and got the following error due to pkgload:

...
* installing *source* package 'pkgload' ...
** R
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
Error: package or namespace load failed for 'pkgload':
 .onLoad failed in loadNamespace() for 'pkgload', details:
  call: is_null(x)
  error: object 'rlang_is_null' not found
Error: loading failed
Execution halted
ERROR: loading failed for 'x64'
* removing 'C:/opt/R/R-3.4.0/library/pkgload'
Installation failed: Command failed (1)

I am on

> devtools::session_info()
Session info -----------------------------------------------------------------------------------------------------------------------------------
 setting  value                                      
 version  R version 3.4.0 Patched (2017-06-13 r72789)
 system   x86_64, mingw32                            
 ui       RStudio (1.0.143)                          
 language (EN)                                       
 collate  English_United States.1252                 
 tz       Europe/Paris                               
 date     2017-06-22                                 

Packages ---------------------------------------------------------------------------------------------------------------------------------------
 package   * version date       source        
 base      * 3.4.0   2017-06-15 local         
 compiler    3.4.0   2017-06-15 local         
 curl        2.6     2017-04-27 CRAN (R 3.4.0)
 datasets  * 3.4.0   2017-06-15 local         
 devtools    1.13.0  2017-05-08 CRAN (R 3.4.0)
 digest      0.6.12  2017-01-27 CRAN (R 3.4.0)
 git2r       0.18.0  2017-01-01 CRAN (R 3.4.0)
 graphics  * 3.4.0   2017-06-15 local         
 grDevices * 3.4.0   2017-06-15 local         
 httr        1.2.1   2016-07-03 CRAN (R 3.4.0)
 knitr       1.16    2017-05-18 CRAN (R 3.4.0)
 memoise     1.1.0   2017-04-21 CRAN (R 3.4.0)
 methods   * 3.4.0   2017-06-15 local         
 R6          2.2.2   2017-06-17 CRAN (R 3.4.0)
 stats     * 3.4.0   2017-06-15 local         
 tools       3.4.0   2017-06-15 local         
 utils     * 3.4.0   2017-06-15 local         
 withr       1.0.2   2016-06-20 CRAN (R 3.4.0)

Most helpful comment

Update rlang?

All 3 comments

Update rlang?

Same issue: R 3.4.1, Windows 7 x64, rlang force-updated. Cleaning all objects from the environment and then trying again is what solved it for me.

I got this error when installing pkgdown today in 3.4.1:

Error: package or namespace load failed for 'pkgload':
 .onLoad failed in loadNamespace() for 'pkgload', details:
  call: is_null(x)
  error: object 'rlang_is_null' not found
Error: loading failed
Execution halted
ERROR: loading failed for 'x64'
ERROR: dependency 'pkgload' is not available for package 'pkgdown'

Reinstalling the package rlang fixed this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

privefl picture privefl  路  3Comments

Anirban166 picture Anirban166  路  8Comments

ycphs picture ycphs  路  6Comments

mjsteinbaugh picture mjsteinbaugh  路  7Comments

ms609 picture ms609  路  6Comments