Errors installing seminr package

Hello all,

I'm experiencing some troubles when trying to install seminr package. Can someone help me?

Warning messages:
1: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/") :
installation of package 'xfun' had non-zero exit status

7: In utils::install.packages("seminr", repos = "https://cran.rstudio.com/") :
installation of package 'seminr' had non-zero exit status

Hi there,

Can you elaborate on which version of R you have etc?

Also what happens when you run:

install.packages("xfun")

and then try and install seminr again?

Can you post the complete error message you get? You are omitting some important parts.

All we can see from that snippet is that the installation of the xfun package has failed but there is no indication of the cause.

1 Like

sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252
[4] LC_NUMERIC=C LC_TIME=Portuguese_Brazil.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3 lavaan_0.6-9 mnormt_1.5-6 pbivnorm_0.6.0 stats4_3.6.3

getOption("repos")
CRAN
"https://cran.rstudio.com/"
attr(,"RStudio")
[1] TRUE

installing the source package ‘xfun’

trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.29.tar.gz'
Content type 'application/x-gzip' length 125150 bytes (122 KB)
downloaded 122 KB

  • installing source package 'xfun' ...
    ** package 'xfun' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
c:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.3/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=core2 -c base64.c -o base64.o
sh: line 1: c:/Rtools/mingw_32/bin/gcc: No such file or directory
make: *** [C:/PROGRA~1/R/R-36~1.3/etc/i386/Makeconf:208: base64.o] Error 127
ERROR: compilation failed for package 'xfun'

  • removing 'C:/Users/Alexandre/Documents/R/win-library/3.6/xfun'
  • restoring previous 'C:/Users/Alexandre/Documents/R/win-library/3.6/xfun'
    Warning in install.packages :
    installation of package ‘xfun’ had non-zero exit status

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

It seems you have R installed for both x32 and x64 architectures but you don't have RTools for x32.

If you don't need the 32-bit version I would recommend uninstalling it to avoid this kind of issues, but another way around is using the no-multiarch option.

install.packages("xfun", INSTALL_opts = '--no-multiarch')

Although, if I'm wrong and you are using the 32-bit version only, then you would need to check that you have a suitable version of RTools properly installed, or update your R version so you can have access to precompiled binaries.

1 Like

Thanks a lot. I'll try it now.

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.