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.
Options
Section titled “Options”name
- Name of the package for which the configure args impactargs
- Theconfigure.args
for the package compilationos
optional - Operating system for which to apply theconfigure.args
Default: All
arch
optional - The system architecture for which to apply theconfigure.args
Default: All
Example
Section titled “Example”[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"] },]