Error: package ‘XXX’ was built for x86_64-apple-darwin15.6.0

when i installed a package, i got an error like "Error: package ‘XXX’ was built for x86_64-apple-darwin15.6.0". So how can i solve this problem? Will it be solved if i use an apple computer?

sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936

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

other attached packages:
[1] Rcpp_1.0.3

loaded via a namespace (and not attached):
[1] compiler_3.6.2 tools_3.6.2
1

Have you tried installing from source?

install.packages("x", type = "source")
# Or if you download the source code
install.packages("c/users/you/downloads/x.tar.gz", repos = NULL, type = "source")

Thank you very much for your reply.

I tried that way, and there are errors like :
"Warning in install.packages : package ‘xxx’ is not available (for R version 3.6.2) "
“Warning in install.packages : installation of package ‘F/xxx.tar.gz’ had non-zero exit status”.

Okay, so you've downloaded the actual source package .tar.gz and it still won't install.

Try extracting the source code and looking at the NAMESPACE file - it may be specifying a specific version of R

I see, thank you very much.
The author built the package in .tgz package format, and I think it just work under R version 3.6.1.

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