A question to my peers and #rstats experts: are there any good tutorials/resources on including an external (non-R) dependency in your R package (like in the magick package)? The dependency is open source, available on Github, and must be compiled. Thanks!
1
2
1
Replying to @DrIdoBar
That is a rich topic in its full generality (do you need to compile the resource or not?) when reflecting the full set of OSs (windows can be tricky). A pre-print of mine discusses it but even that cannot cover all aspects. #rstats arxiv.org/abs/1911.06416

Jul 28, 2022 · 1:50 AM UTC

1
1
2
Replying to @eddelbuettel
Yes, the dependency needs compiling (a fairly simple one though) and I would like it to be available on Windows as well as POSIX OS. Can it be managed by an OS-dependant script that downloads and uses the local compiler (or Rtools) to compile it?
1
This cannot get covered in a reply thread here so maybe try to use the - Writing R Extensions manual - CRAN Repository Policy - r-package-devel list - 18000+ CRAN packages as models Going with external compilation is the most difficult package setup. But it is possible. #rstats
1
1