Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the package not loading in R 4.2.0 on Mac #9

Open
MartinBulla opened this issue May 31, 2022 · 7 comments
Open

the package not loading in R 4.2.0 on Mac #9

MartinBulla opened this issue May 31, 2022 · 7 comments

Comments

@MartinBulla
Copy link

Hi Tim,

I have installed the package on Mac Mojave (10.14.6) with R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics". When loading the package via require(related), I get the following error

loading required package: related
Error: package or namespace load failed for ‘related’:
package ‘related’ was installed before R 4.0.0: please re-install it

Re-installation of the package does not help. Any thoughts on that?

Looking forward to hearing from you,
Martin

@timothyfrasier
Copy link
Owner

timothyfrasier commented May 31, 2022 via email

@MartinBulla
Copy link
Author

Super, Tim. I appreciate it and wish you that the fixing goes smoothly.

@timothyfrasier
Copy link
Owner

timothyfrasier commented Jun 10, 2022 via email

@MartinBulla
Copy link
Author

MartinBulla commented Jun 20, 2022 via email

@kepra3
Copy link

kepra3 commented Nov 30, 2022

Hi Tim,

Appreciate the info for installing on Mac. I followed all the steps but I do come to an error.

  • installing source package ‘related’ ...
    ** using staged installation
    ** libs
    Error in if (nzchar(SHLIB_LIBADD)) SHLIB_LIBADD else character() :
    argument is of length zero
  • removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/related’
    Warning in install.packages :
    installation of package ‘/Users/kprata/Dropbox/related_1.0.tar.gz’ had non-zero exit status

Not sure which software this is having an issue with. I do have many different locations for software you mention (e.g., gcc/gfortran) so I wonder if that could be a problem.

Any help on resolving this would be highly appreciated!

Cheers,
Kat

@timothyfrasier
Copy link
Owner

timothyfrasier commented Nov 30, 2022 via email

@kepra3
Copy link

kepra3 commented Nov 30, 2022

Hi Tim,

I already had xcode-select so did not re-install this. I installed XQuartz from the link you provided, installed the appropriate version of gfortran (I have an intel core processor) and adjusted the PATH, I updated my Rstudio, I have R 4.2.0. I re-installed devtools and ggplot2. I downloaded all the .dylib files and placed these in /usr/local/lib/ then downloaded the related.tar.qz and installed from Package Archive File.

versions:

xcode-select version 2373.
GNU Fortran (GCC) 4.8.5
XQuartz 2.8.2 (xorg-server 1.20.14)
RStudio 2022.07.2
devtools_2.4.5
ggplot2_3.4.0

Also, maybe to note within my /usr/local/lib many of the files appear to be hyperlinked to my homebrew 'Cellar', e.g.,

-rw-r--r--@   1 kprata  staff   1.5M 30 Nov 14:42 libgfortran.3.dylib
lrwxr-xr-x    1 kprata  admin    45B 10 Aug  2021 libgif.7.2.0.dylib -> ../Cellar/giflib/5.2.1/lib/libgif.7.2.0.dylib

Except those .dylib files I placed there, which are also not executable.

Cheers,
Kat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants