I just got this message:
Error in renv_snapshot_validate_report(valid, prompt, force) :
snapshot aborted due to pre-flight validation failure
I want to deploy my Shiny application with the Golem package via the command:
# Deploy to Posit Connect or ShinyApps.io
# In command line.
rsconnect::deployApp(
appName = desc::desc_get_field(“Package”),
appTitle = desc::desc_get_field(“Package”),
appFiles = c(
# Add any additional files unique to your app here.
“R/”,
“inst/”,
“data-raw/”,
“NAMESPACE”,
“DESCRIPTION”,
“app.R”
),
appId = rsconnect::deployments(“.”)$appID,
lint = FALSE,
forceUpdate = TRUE
)
You don't have to use Renv, you just have to install your package on your environment from Github and not in “dev” mode.
Install your package with remotes::install_github(repo = “myrepos/mypackage”)
Then deploy your app. When the job is launched on RStudio, it looks at the packages installed on your machine, and if you go to your R\R-4.4.2\library\MyPackage directory. Open the DESCRIPTION file, and you'll be able to see information about the source.