Fail to install package "broom"

Hello,
I was trying to install "broom", but get the folllowing errors:

Error : .onLoad failed in loadNamespace() for 'broom', details:
  call: NULL
  error: 'import' is not an exported object from 'namespace:backports'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
*** arch - x64
Error : .onLoad failed in loadNamespace() for 'broom', details:
  call: NULL
  error: 'import' is not an exported object from 'namespace:backports'
Fehler: Laden fehlgeschlagen
Ausführung angehalten
ERROR: loading failed for 'i386', 'x64'
* removing 'c:/Install/R_3-3-3/library/broom'
Warning in install.packages :
  running command '"c:/install/R_3-3-3/bin/x64/R" CMD INSTALL -l "c:\Install\R_3-3-3\library" C:\Users\vag41dh\AppData\Local\Temp\RtmpgDOzAN/downloaded_packages/broom_0.5.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘broom’ had non-zero exit Status

What have I tried to fix?

I tried installing broom in R (not Rstudio) with the same result. I tried installing the package using different different CRAN mirrors, producing the same error messages.

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 1.1.453
  • OS Version: Windows 8, 64-bit
  • R Version: 3.3.3

I assume it has something to do with namespace:backports.
Any ideas about how to fix this would be awesome!

Did you try reinstalling the backports package? It looks like broom is looking for the import function from this package. It may be that you have a version of the package that does not include this function.

try:

install.packages("backports")

and then:

install.packages("broom")
1 Like

This worked just fine, thank you very much! :slight_smile:

2 Likes