Failure to load "related" package and it's libraries

Error Information:

install.packages("libgfortran.3.dylib",repos = NULL, dependencies = T, type = "mac.binary")
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
Warning in install.packages :
'tar' returned non-zero exit code 1
Error in install.packages : file ‘libgfortran.3.dylib’ is not a macOS binary package

install.packages("libgfortran.3.dylib")
Warning in install.packages :
package ‘libgfortran.3.dylib’ is not available (for R version 3.6.1)

Description of issue -
I was going through an old analysis but now I can't use the related package anymore. Since I used it last I updated to R 3.6. I tried reinstalling it from GitHub but it doesn't work anymore. On GitHub they specify that this new version should be compatible with all versions of R 3.5 and higher.
Also depending on the information I provide in the install.packages function I get a different error message.
Steps taken so far -

System Information:

I'm using macOS Mojave

Also:

setwd("/usr/local/lib/")
install.packages("libgfortran.3.dylib", repos = NULL, dependencies = T, type = "mac.binary")
install.packages("libgcc_s.1.dylib", repos = NULL, dependencies = T, type = "mac.binary")
install.packages("libquadmath.0.dylib", repos = NULL, dependencies = T, type = "mac.binary")
install.packages("related_1.0.tar", repos = NULL, type = "mac.binary")


From Troubleshooting Guide: Using RStudio

Those are not R packages, those are system libraries, you can't install them from the R console. (unless you run a system command using system() or system 2() functions but that would be impractical for this case).

1 Like

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