Skip to content

Check path to R and Rscript before calling #135

@TimTaylor

Description

@TimTaylor

Currently if you have multiple builds of R installed on your system then, irrespective of the one being run, build_install_test() will call in to the default R. I ran in to this when testing on an R-devel install this morning. This can be resolved by querying the R path before constructing the call ...

E.g. replacing

system2("R", args=c("CMD", "build", "--no-build-vignettes", "--no-manual", shQuote(pkg)))

by

system2(file.path(R.home("bin"), "R")
              , args=c("CMD", "build", "--no-build-vignettes", "--no-manual", shQuote(pkg)))

with similar changes for Rscript and a slightly different incantation for Windows.

I've made PR #134 to implement this change. Currently it is marked as a draft as I have only checked it works on a linux machine not Windows. I'll try and sort a windows check over the next couple of days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions