DEV Community

Lukas Iepsen
Lukas Iepsen

Posted on

4

[Solved] R doesn't find installed packages

Liquid syntax error: Unknown tag 'endraw'

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

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.

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay