OHDSI Home | Forums | Wiki | Github

Capr installation error

We are getting an error when trying to install Capr. We tried to install a few different ways:

  1. devtools

  2. remotes:

  3. install.packages:

Any advice as to why this isn’t working?

Thanks,
Alison

From the errors from 2 and 3 it seems Capr uses the native pipe operator introduced in R 4.1. However from their DESCRIPTION file:

Depends:
R (>= 3.5.0)

If you can using R4.1 or newer would solve this. But I also made an issue in Capr to get this fixed. Using native pipe but DESCRIPTION says R >= 3.5 is supported · Issue #100 · OHDSI/Capr · GitHub

Thanks for the response. We are actually using R 4.2.2.

Looking at the first red row of each screenshot, package installation path ends with ...library/4.0, where 4.0 is actually a version number. It looks like the interpreter version called by RStudio is actually R 4.0 – or it somehow misreports itself. What is the output of version in R console?

Thank you @egillax and @Eduard_Korchmar. It turns out we were installing with R 4.0.5 so your initial advice was correct. It’s working now that we are using R 4.2.2. Thanks again!

t