I'm a complete newbie, going through a course on LinkedIn Learning. I'm at the point where the code in the exercises is
if (!require("pacman")) install.packages("pacman")
The IF statement doesn't seem to do anything, so I just run
install.packages("pacman")
Everything seems to work fine. The next line of code in the exercise is
pacman::p_load(pacman, party, rio, tidyverse)
There is a dependency of data.table
.
There is a binary version available but the source version is later: binary source needs_complication
data.table 1.12.8 1.13.0 TRUE
Do you want to install from sources the package which needs complication? (Yes/no/cancel)
I enter "yes". A flutter of activity then I get this
Error: package or namespace load failed for ‘data.table’ in library.dynam(lib, package, package.lib):
shared object ‘datatable.so’ not found
Error: loading failed
Execution halted
ERROR: loading failed
removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/data.table’The downloaded source packages are in
‘/private/var/folders/k1/vv1dkc3x171b8n4_w2g6ffnw0000gn/T/RtmpTdgSfb/downloaded_packages’rio installed
Warning messages:
1: In utils::install.packages(package, ...) :
installation of package ‘data.table’ had non-zero exit status
2: In pacman::p_load(pacman, party, rio, tidyverse) :
Failed to install/load:
rio
I'm not sure what to do to resolve this. Can someone help a rookie?