Install package ChainLadder buggy

Hi, can anybody help on that?

install.packages('ChainLadder', dependencies = TRUE)
library(ChainLadder)
Error in library(ChainLadder) : there is no package called ‘ChainLadder’

It works fine for me. What output are you getting after you issue the command

install.packages('ChainLadder', dependencies = TRUE)

Note: You can repeat the command without hurting the RStudio/R installation.

I get the following error:

ERROR: compilation failed for package ‘actuar’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/actuar’
Warning in install.packages :
  installation of package ‘actuar’ had non-zero exit status
ERROR: dependency ‘minqa’ is not available for package ‘cplm’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cplm’
Warning in install.packages :
  installation of package ‘cplm’ had non-zero exit status
ERROR: dependencies ‘actuar’, ‘cplm’ are not available for package ‘ChainLadder’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/ChainLadder’
Warning in install.packages :
  installation of package ‘ChainLadder’ had non-zero exit status

Installing these dependecies I get this error:

installation of package ‘actuar’ had non-zero exit status

I am using a Mac

It looks like {ChainLadder} should automatically install {actuar} but, as sometimes happens, the installation fails.

Try

 install.packages("actuar") 

and then

 install.packages("ChainLadder") 

You may have to repeat this for other packages that {ChainLadder} imports.

Hi, as already mentioned above, the error is that the installation of the dependecies fails, I already posted the error message I got installing "actuar", here once again:

Sorry, I missed your last message. Can you give us the complete output from the **install.packages("actuar") ** attempt?

Are you able to install other packages ?

here the error for the first package:

> install.packages("actuar") 
Warning in install.packages :
  lzma decoder corrupt data

  There is a binary version available but the source version is later:
       binary source needs_compilation
actuar  3.3-2  3.3-4              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘actuar’

trying URL 'https://cran.rstudio.com/src/contrib/actuar_3.3-4.tar.gz'
Content type 'application/x-gzip' length 981812 bytes (958 KB)
==================================================
downloaded 958 KB

* installing *source* package ‘actuar’ ...
** package ‘actuar’ 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'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c beta.c -o beta.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c betaint.c -o betaint.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c burr.c -o burr.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c chisq.c -o chisq.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c dpq.c -o dpq.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c dpqphtype.c -o dpqphtype.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c exp.c -o exp.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c fpareto.c -o fpareto.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c gamma.c -o gamma.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c genbeta.c -o genbeta.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c genpareto.c -o genpareto.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c gumbel.c -o gumbel.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c hierarc.c -o hierarc.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c init.c -o init.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invburr.c -o invburr.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invexp.c -o invexp.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invgamma.c -o invgamma.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invgauss.c -o invgauss.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invparalogis.c -o invparalogis.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invpareto.c -o invpareto.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invtrgamma.c -o invtrgamma.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c invweibull.c -o invweibull.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c lgamma.c -o lgamma.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c llogis.c -o llogis.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c lnorm.c -o lnorm.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c logarithmic.c -o logarithmic.o
In file included from logarithmic.c:99:
./qDiscrete_search.h:47:10: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
        for(int iter = 0; ; iter++) {
                ^
./qDiscrete_search.h:62:10: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
        for(int iter = 0; ; iter++) {
                ^
2 warnings generated.
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c names.c -o names.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c norm.c -o norm.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c panjer.c -o panjer.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c paralogis.c -o paralogis.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c pareto.c -o pareto.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c pareto1.c -o pareto1.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c pareto2.c -o pareto2.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c pareto3.c -o pareto3.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c pareto4.c -o pareto4.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c phtype.c -o phtype.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c poisinvgauss.c -o poisinvgauss.o
In file included from poisinvgauss.c:160:
./qDiscrete_search.h:47:10: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
        for(int iter = 0; ; iter++) {
                ^
./qDiscrete_search.h:62:10: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
        for(int iter = 0; ; iter++) {
                ^
2 warnings generated.
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c random.c -o random.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c randomphtype.c -o randomphtype.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c trbeta.c -o trbeta.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c trgamma.c -o trgamma.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c unif.c -o unif.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c util.c -o util.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c weibull.c -o weibull.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c zmbinom.c -o zmbinom.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c zmgeom.c -o zmgeom.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c zmlogarithmic.c -o zmlogarithmic.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c zmnbinom.c -o zmnbinom.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c zmpois.c -o zmpois.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c ztbinom.c -o ztbinom.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c ztgeom.c -o ztgeom.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c ztnbinom.c -o ztnbinom.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/expint/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c ztpois.c -o ztpois.o
clang -mmacosx-version-min=10.13 -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 actuar.so beta.o betaint.o burr.o chisq.o dpq.o dpqphtype.o exp.o fpareto.o gamma.o genbeta.o genpareto.o gumbel.o hierarc.o init.o invburr.o invexp.o invgamma.o invgauss.o invparalogis.o invpareto.o invtrgamma.o invweibull.o lgamma.o llogis.o lnorm.o logarithmic.o names.o norm.o panjer.o paralogis.o pareto.o pareto1.o pareto2.o pareto3.o pareto4.o phtype.o poisinvgauss.o random.o randomphtype.o trbeta.o trgamma.o unif.o util.o weibull.o zmbinom.o zmgeom.o zmlogarithmic.o zmnbinom.o zmpois.o ztbinom.o ztgeom.o ztnbinom.o ztpois.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: -single_module is obsolete
ld: warning: -multiply_defined is obsolete
ld: warning: search path '/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0' not found
ld: warning: search path '/usr/local/gfortran/lib' not found
ld: library 'gfortran' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [actuar.so] Error 1
ERROR: compilation failed for package ‘actuar’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/actuar’
Warning in install.packages :
  installation of package ‘actuar’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/td/qb_qldqj7lv02qfy3lwg168r0000gn/T/Rtmp9HUnWc/downloaded_packages’

here the error for the second one:

install.packages('minqa', dependencies = TRUE)

  There is a binary version available but the source version is later:
      binary source needs_compilation
minqa  1.2.5  1.2.6              TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘minqa’

trying URL 'https://cran.rstudio.com/src/contrib/minqa_1.2.6.tar.gz'
Content type 'application/x-gzip' length 54493 bytes (53 KB)
==================================================
downloaded 53 KB

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

The downloaded source packages are in
	‘/private/var/folders/td/qb_qldqj7lv02qfy3lwg168r0000gn/T/Rtmp9HUnWc/downloaded_packages’

here the third one and last one:

> install.packages('cplm', dependencies = TRUE)
also installing the dependency ‘minqa’


  There are binary versions available but the source versions are later:
      binary source needs_compilation
minqa  1.2.5  1.2.6              TRUE
cplm  0.7-11 0.7-12              TRUE

Do you want to install from sources the packages which need compilation? (Yes/no/cancel) Yes
installing the source packages ‘minqa’, ‘cplm’

trying URL 'https://cran.rstudio.com/src/contrib/minqa_1.2.6.tar.gz'
Content type 'application/x-gzip' length 54493 bytes (53 KB)
==================================================
downloaded 53 KB

trying URL 'https://cran.rstudio.com/src/contrib/cplm_0.7-12.tar.gz'
Content type 'application/x-gzip' length 1255098 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

* installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls  -fPIC  -Wall -g -O2  -c altmov.f -o altmov.o
make: gfortran: No such file or directory
make: *** [altmov.o] Error 1
ERROR: compilation failed for package ‘minqa’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/minqa’
Warning in install.packages :
  installation of package ‘minqa’ had non-zero exit status
ERROR: dependency ‘minqa’ is not available for package ‘cplm’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/cplm’
Warning in install.packages :
  installation of package ‘cplm’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/td/qb_qldqj7lv02qfy3lwg168r0000gn/T/Rtmp9HUnWc/downloaded_packages’

no worries, thanks for your prompt support!

Unfortunately my current employer does not provide mac as a laptop, but on the Lenovo "laptop" that I use for work the library works. This is why I thought that it may be related to the Mac.

Ouch, it may well be a Mac problem and I am of no help if it is. I'm running Ubuntu 22.04.

Let's hope a Mac user comes by. Sorry not to be of more help.

Come to think of it, it might be a good idea to run

sessionInfo()

and post the output here.

as requested:

sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 14.0

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] data.table_1.15.2

loaded via a namespace (and not attached):
[1] compiler_4.1.1 tools_4.1.1  

R version 4.1.1 is a bit old. Is it practical to move to R version 4.3.3 which, I think, is still the most recent?