Error installing package "pkgload"


I'm trying to install the pkgload package and the following error pops up:

There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 1.0.2 1.0.3 TRUE
pkgload 1.2.4 1.3.0 FALSE

Binaries will be installed
trying URL ''
Content type 'application/zip' length 1534255 bytes (1.5 MB)
downloaded 1.5 MB

package ‘rlang’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
installing the source package ‘pkgload’

trying URL ''
Content type 'application/x-gzip' length 76008 bytes (74 KB)
downloaded 74 KB

  • installing source package 'pkgload' ...
    ** package 'pkgload' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
    namespace 'rlang' 1.0.2 is being loaded, but >= 1.0.3 is required
    Calls: ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
    Execution halted
    ERROR: lazy loading failed for package 'pkgload'
  • removing 'C:/Users/dane.jessen/AppData/Local/R/win-library/4.2/pkgload'
    Warning in install.packages :
    installation of package ‘pkgload’ had non-zero exit status

I try and update rlang, but it won't let me update to 1.0.3.

Not sure what to try next...

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.