r-lib / ragg

Graphic Devices Based on AGG
https://ragg.r-lib.org
Other
172 stars 24 forks source link

Can not install agg_basics.h: No such file or directory #139

Closed pati-ni closed 1 year ago

pati-ni commented 1 year ago

In R 4.3 I get the following error when I try to install from CRAN

In file included from capture_dev.cpp:1:
ragg.h:13:10: fatal error: agg_basics.h: No such file or directory
   13 | #include "agg_basics.h"
      |          ^~~~~~~~~~~~~~

Any idea where this error come from?

kylebaron commented 1 year ago

I had the same issue with R 4.3.1 on macos.

Should be able to find the header file: https://github.com/r-lib/ragg/blob/main/src/Makevars.in#L1

But not finding it. I found that removing (renaming) my ~/.R/Makevars will get -I./agg/include into the mix and the header file will be found. Not sure why my Makevars file is overriding the file provided by ragg.

pati-ni commented 1 year ago

Removing PKG* does the trick https://github.com/RcppCore/RcppEigen/issues/128