Unable to install 'vars package' in R3.3.3

Hi,
I am using R 3.3.3 version and I am unable to install 'vars' package. The error meassage is attached.

install.packages("vars")
also installing the dependency ‘strucchange’

There are binary versions available but the source
versions are later:
binary source needs_compilation
strucchange 1.5-1 1.5-2 FALSE
vars 1.5-2 1.5-3 FALSE

installing the source packages ‘strucchange’, ‘vars’

trying URL 'https://cran.rstudio.com/src/contrib/strucchange_1.5-2.tar.gz'
Content type 'application/x-gzip' length 544106 bytes (531 KB)

downloaded 531 KB

trying URL 'https://cran.rstudio.com/src/contrib/vars_1.5-3.tar.gz'
Content type 'application/x-gzip' length 694522 bytes (678 KB)

downloaded 678 KB

  • installing source package ‘strucchange’ ...
    ** package ‘strucchange’ successfully unpacked and MD5 sums checked
    ** libs
    clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c strucchange_functions.c -o strucchange_functions.o
    clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c strucchange_init.c -o strucchange_init.o
    clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o strucchange.so strucchange_functions.o strucchange_init.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2 -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
    ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
    ld: library not found for -lgfortran
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [strucchange.so] Error 1
    ERROR: compilation failed for package ‘strucchange’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/strucchange’
    Warning in install.packages :
    installation of package ‘strucchange’ had non-zero exit status
    ERROR: dependency ‘strucchange’ is not available for package ‘vars’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/vars’
    Warning in install.packages :
    installation of package ‘vars’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/z3/9wt5frqd3qg5zd99c4zd7fb00000gn/T/RtmpsLovLw/downloaded_packages’

library(vars)
Error in library(vars) : there is no package called ‘vars’

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