> devtools::install_deps(dependencies = TRUE)
...
There are binary versions available but the source versions are later:
binary source needs_compilation
knitr 1.20 1.21 FALSE
stringi 1.2.4 1.3.1 TRUE
...
* installing *source* package ‘knitr’ ...
** package ‘knitr’ successfully unpacked and MD5 sums checked
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘stringi’
Error : unable to load R code in package ‘knitr’
ERROR: lazy loading failed for package ‘knitr’
* removing ‘/Users/travis/R/Library/knitr’
Error in i.p(...) :
(converted from warning) installation of package ‘knitr’ had non-zero exit status
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
My package is currently failing to build on macOS because
install_deps()(on Travis) andinstall_local()(on rhub) cannot install knitr and stringi from source. It attempts to build knitr first, which fails because knitr depends on stringi (via stringr).Here are the relevant parts of the Travis log:
rhub::check_on_macos()error frominstall_local()rhub::check_on_macos()