I recently submitted the package `libdeflate`, which successfully made
its way to the CRAN
(https://cran.r-project.org/web/packages/libdeflate/index.html) but
has failed to install on macOS:

https://cran.r-project.org/web/checks/check_results_libdeflate.html

Specifically, installation requires CMake, which is checked for during
the configure step with Sys.which("cmake"). This returns "" on macOS,
indicating it was not found. Note that cmake is indeed listed as a
SystemRequirement in the DESCRIPTION.

https://www.r-project.org/nosvn/R.check/r-release-macos-arm64/libdeflate-00install.html

* installing *source* package ‘libdeflate’ ...
** this is package ‘libdeflate’ version ‘1.23.0’
** package ‘libdeflate’ successfully unpacked and MD5 sums checked
** using staged installation
** preparing to configure package 'libdeflate' ...
sh: : command not found
Error in eval(parse(text = contents), envir = envir) :
  CMake configure step failed
Calls: source_file -> eval -> eval
In addition: Warning messages:
1: In normalizePath(Sys.which("cmake"), winslash = "/") :
  path[1]="": No such file or directory
2: In system2(CMAKE, cmake_cfg) : error in running command
Execution halted
ERROR: configuration failed for package ‘libdeflate’

I see that WRE also recommends checking
"/Applications/CMake.app/Contents/bin/cmake" on macOS. Before
submitting an update, though, it would be nice if someone could
confirm where cmake is located on the CRAN macOS environment so I can
be sure the fix will be successful.

Tyler

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to