Error loading package since update of R and Rstudio (lazy loading failed)

I am unable to download and install multiple packages since I have updated both R and Rstudio and my computers. These packages include broom, timeSeries, rmarkdown for instance. I tried multiple things including uninstalling everything, deleting all packages on computer, use Rtools ... but still having the same issued. Here is the following error that is displayed

install.packages("broom")
Installing package into ‘\\smeal.psu.edu/data/Grads/mav24/My Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
      binary source needs_compilation
broom  0.5.3  0.5.4             FALSE

installing the source package ‘broom’

trying URL 'https://cran.rstudio.com/src/contrib/broom_0.5.4.tar.gz'
Content type 'application/x-gzip' length 1228129 bytes (1.2 MB)
downloaded 1.2 MB

* installing *source* package 'broom' ...
** package 'broom' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
Warning in file.create(to[okay]) :
  cannot create file '\smeal.psu.edu/data/Grads/mav24/My Documents/R/win-library/3.6/00LOCK-broom/00new/broom/doc/adding-tidiers.R', reason 'No such file or directory'

[...] [...] [...] [...] [...] [...] [...]

Calls: <Anonymous> -> findpack
Execution halted
ERROR: lazy loading failed for package 'broom'
* removing '\\smeal.psu.edu/data/Grads/mav24/My Documents/R/win-library/3.6/broom'
Warning in install.packages :
  installation of package ‘broom’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\mav24\AppData\Local\Temp\RtmpYZlb0Q\downloaded_packages’

It is a known issue that R has problems installing to network drives, the easiest solution would be to install into a local library path.

1 Like

I am having a very similar error message but on a mac.

Installing package into ‘/Users/xxxxxxx/Library/R/3.6/library’
(as ‘lib’ is unspecified)

There is a binary version available but the source version is later:
binary source needs_compilation
broom 0.5.3 0.5.4 FALSE

installing the source package ‘broom’

trying URL 'https://cran.rstudio.com/src/contrib/broom_0.5.4.tar.gz'
Content type 'application/x-gzip' length 1228129 bytes (1.2 MB)

downloaded 1.2 MB

Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘broom’
Execution halted
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/1_/wkz168ld00s6yp03mzzb7qjm0000gn/T/Rtmp5j5wPw/downloaded_packages’

I just updated to R3.6, can't install tidyverse due to absence of broom (I think) but also can't install broom. I've tried restarting my session and installing from github. Am very much an R novice. Had been resisting updating as I was concerned this might happen, any ideas very gratefully received.

1 Like

Hey Andrés. Thanks for your prompt reply. I am seeing with my administrator if I can get downloads on the local machine. Would you have any other ideas if I cannot succeed having the access.

Thanks

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