I have a Plumber API in R that I need to publish to R Studio Connect (Posit). During deployment I encounter this error:
Cannot install arrow: a C++17 compiler is required
I tried adding a renv.lock to the package but this had no effect.
The deployment code I am using is:
rsconnect::deployApp(appPrimaryDoc = "plumber_api_file.R",
appFiles = c("plumber_api_file.R", "requirements.txt", "renv.lock", ".Rprofile"),
contentCategory = "api",
appName = "some_plumber_api")
The API works fine locally.