DEV Community

Lukas Iepsen
Lukas Iepsen

Posted on

[Solved] R doesn't find installed packages

Liquid syntax error: Unknown tag 'endraw'

Top comments (3)

Collapse
 
daveparr profile image
Dave Parr

Glad you solved it :)

Incidentally, non-zero exit status actually tends to mean something didn't work.

In R we have a few tools available to us to manage packages in addition to the built in ones. Packrat has been a default solution for a long time, but now I think renv is going to soon replace it.

Any idea why the apt install build-essential solved it? I guess it might be as you needed to do local builds from the source code as opposed to pulling a new tarball in?

Collapse
 
iepsenn profile image
Lukas Iepsen

I'm going to guess this installs the GCC toolchain which R would need to compile those packages for my distro since CRAN does not provide binary packages for linux...

Collapse
 
iepsenn profile image
Lukas Iepsen

The command apt install build-essential solved this.