I’m trying to install the cacc package in R using the instructions here and after running install.packages("cacc")
, an error is displayed:
installing the source package ‘cacc’
trying URL 'https://cran.rstudio.com/src/contrib/cacc_0.1.0.tar.gz'
Content type 'application/x-gzip' length 30751 bytes (30 KB)
==================================================
downloaded 30 KB
* installing *source* package ‘cacc’ ...
** package ‘cacc’ successfully unpacked and MD5 sums checked
** using staged installation
** R
Error in parse(outFile) :
/[filepath here]/R.INSTALL27c669724e91/cacc/R/cacc.R:31:25: unexpected '>'
30: # Count all profiles
31: matrix_total <- data |>
^
ERROR: unable to collate and parse R files for package ‘cacc’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/cacc’
Warning in install.packages :
installation of package ‘cacc’ had non-zero exit status
The downloaded source packages are in
‘/[filepath here]/downloaded_packages’
Am I doing something wrong (or is there something I can do to resolve it – if so what?) or is there an issue with the package that the package owner needs to fix? If there’s something I can do to resolve this, please explain it to me like I’m a complete newbie, so I know what to do step by step.
2