Skip to content
Prev 14266 / 15075 Next

Failed to install R package in Mac

The warning is harmless. The real issue is that the linker doesn't find the fortran libs:
This suggests that you have an installation problem with your compiler. 

Compiling source package on Mac can be quite tricky if you want them to work with the CRAN binaries of R, especially if fortran is involved. 

See Simon's documents and downloads at mac.r-project.org. 

However, it is not normally an issue to instal tseries as a binary package:

R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid"

....
Error in library(tseries) : there is no package called ?tseries?
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies ?xts?, ?TTR?, ?curl?, ?quadprog?, ?zoo?, ?quantmod?

trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.2/xts_0.12.1.tgz'
Content type 'application/x-gzip' length 928219 bytes (906 KB)
==================================================
downloaded 906 KB

....

trying URL 'https://cloud.r-project.org/bin/macosx/contrib/4.2/tseries_0.10-51.tgz'
Content type 'application/x-gzip' length 416419 bytes (406 KB)
==================================================
downloaded 406 KB


The downloaded binary packages are in
	/var/folders/h0/hzzhnnfd1gx7399sx_cwlhpw0000gn/T//RtmpIrrODM/downloaded_packages
So, there appears to be something special about your setup.


-pd