Skip to content

Cannot install knitr from source on macOS #296

Description

@jdblischak

My package is currently failing to build on macOS because install_deps() (on Travis) and install_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:

> 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions