Skip to content

configure_args

Similar to packages_env_vars, rv aims to powerfully install packages, with package specific configuration available. Similar to R’s install.packages(), rv allows you to set configure.args per package, but it additionally gives the ability to provide different configure.args per OS and arch.

  • name - Name of the package for which the configure args impact
  • args - The configure.args for the package compilation
  • os optional - Operating system for which to apply the configure.args

    Default: All

  • arch optional - The system architecture for which to apply the configure.args

    Default: All

rproject.toml
[project]
name = "env vars"
r_version = "4.5"
repositories = [
{ alias = "PPM", url = "https://packagemanager.posit.co/cran/latest" },
]
dependencies = [
{ name = "foo", force_source = true },
{ name = "bar", force_source = true },
]
[project.configure_args]
"foo" = [
{ os = "macos", args = ["--some-flag"] },
{ arch = "x86_64", args = ["--some-other-flag"] },
]
"bar" = [
{ args = ["--this-flag"] },
{ os = "macos", arch = "arm64", args = ["--that-flag"] },
]