Unable to install new R packages

Hi! I´m currently unable to install new packages in RStudio. I updated RStudio to the latest version and tried different CRAN repositories but still get the following error message:

Error Information:

Ausführung angehalten
ERROR: lazy loading failed for package 'bslib'

  • removing 'C:/Users/anna-/Documents/R/win-library/3.6/bslib'
    Warning in install.packages :
    installation of package ‘bslib’ had non-zero exit status
  • installing source package 'tinytex' ...
    ** Paket 'tinytex' erfolgreich entpackt und MD5 Summen überprüft
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Fehler in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    namespace 'xfun' 0.22 is being loaded, but >= 0.29 is required
    Ruft auf: ... namespaceImportFrom -> asNamespace -> loadNamespace
    Ausführung angehalten
    ERROR: lazy loading failed for package 'tinytex'
  • removing 'C:/Users/anna-/Documents/R/win-library/3.6/tinytex'
  • restoring previous 'C:/Users/anna-/Documents/R/win-library/3.6/tinytex'
    Warning in install.packages :
    installation of package ‘tinytex’ had non-zero exit status
    ERROR: dependency 'bslib' is not available for package 'rmarkdown'
  • removing 'C:/Users/anna-/Documents/R/win-library/3.6/rmarkdown'
    Warning in install.packages :
    installation of package ‘rmarkdown’ had non-zero exit status

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 3.6.1

Has someone a solution for this?

I would look on this one:

namespace 'xfun' 0.22 is being loaded, but >= 0.29 is required

and try to update xfun to 0.29 at least.

Regards,
Grzegorz

Hi Grzegorz,

thank you for your tip! How can I install the latest version of this package? I deleted the xfun package and reinstalled it, but it will only install version 0.22.

Thanks!

It works now! Thanks :slight_smile:

This topic was automatically closed 7 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.