install.packages multcomp

Hi.
I tried to install multcomp but following error happens all the time.

스크린샷 2020-06-13 오전 10.48.21

downloaded but it says

  • installing source package ‘mvtnorm’ ...
    ** package ‘mvtnorm’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c C_FORTRAN_interface.c -o C_FORTRAN_interface.o
    clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c miwa.c -o miwa.o
    gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls -fPIC -Wall -g -O2 -c mvt.f -o mvt.o
    make: gfortran: No such file or directory
    make: *** [mvt.o] Error 1
    ERROR: compilation failed for package ‘mvtnorm’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/mvtnorm’
    Warning in install.packages :
    installation of package ‘mvtnorm’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/dd/21svxs313wjfmtnhm2qvchkh0000gn/T/RtmpWNrxCo/downloaded_packages’

install.packages("multcomp")
also installing the dependency ‘mvtnorm’


I also ran '$ xcode-select --install' command in Terminal but couldn't solve.
I'm Mac user & r and r-studio is the latest version.

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