Skip to content

[R-pkg-devel] Including header files with long filenames in an R pacakge

3 messages · Eric Dunipace, Dirk Eddelbuettel

#
Hello,

I did some searching and wasn?t able to find a good answer to my question, so I hope that someone here has knowledge of how to fix the problem.

I?m currently trying to create an R package that bundles the CGAL header files (http://www.cgal.org) for easy linking by other packages?that will be in an inst/include directory. Unfortunately, the names of the header files with their directory/subdirectory structures exceed the filename limit for R packages on CRAN. Is there a way to bundle these into the R package without changing their names?

Since these are simply a reproduction of the CGAL header files, I don?t want to change their filenames since that will make their usage different than users would expect, and also make it more difficult to reference documentation on the CGAL website.

For reference, I?m building with R 4.0.3 and have a git repository with the package at <https://github.com/ericdunipace/RcppCGAL>.

Thanks in advance,
Eric Dunipace
#
On 12 May 2021 at 11:03, Eric Dunipace wrote:
| I did some searching and wasn?t able to find a good answer to my question, so I hope that someone here has knowledge of how to fix the problem.
| 
| I?m currently trying to create an R package that bundles the CGAL header files (http://www.cgal.org) for easy linking by other packages?that will be in an inst/include directory. Unfortunately, the names of the header files with their directory/subdirectory structures exceed the filename limit for R packages on CRAN. Is there a way to bundle these into the R package without changing their names?
| 
| Since these are simply a reproduction of the CGAL header files, I don?t want to change their filenames since that will make their usage different than users would expect, and also make it more difficult to reference documentation on the CGAL website.

CRAN will request that you change the filenames to shorten them.

I have done so each time for the BH package as you will see in its GitHub
repo and the patch files.

Dirk
#
Ok, thank you for the info.
On May 12, 2021, 12:03 PM -0700, Dirk Eddelbuettel <edd at debian.org>, wrote: