[R-pkg-devel] cmake, Windows

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Sat Mar 5 21:36:43 CET 2022


On 5 March 2022 at 18:17, matthias-gondan wrote:
| Dear package developers, I have submitted a source package to CRAN, and it is rejected because installation fails on Windows.https://github.com/mgondan/rologThe compilation needs cmake, which is available on RTools4+.Is there any chance that cmake is included on the build system? If not, does anyone know a good solution for this problem?Best regards,Matthias 

You can treat the corpus of CRAN packages as a reference, and search it
either directly (GitHub search works as https://github.com/cran is an
informal mirror of CRAN), or in the aggregate via base R tools"

> db <- tools::CRAN_package_db()
> db[ grepl("cmake", db[,"SystemRequirements"]), "Package" ]
[1] "nanonext"    "neuronorm"   "nloptr"      "rkeops"      "ROpenCVLite" "symengine"   "tiledb"     
> 

These seven packages may provide an example. (I am behind 'tiledb' and we
only use cmake iff compilation of the underlying TileDB Embedded library is
selected, and which is not the default on Windows so that one is of no use to
you. Package 'nloptr' uses 'cmake' to build libnlopt.a (unless nlopt is
already installed).

Hth, Dirk

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list