Watts-College / paf-513-template

https://watts-college.github.io/paf-513-template/
MIT License
0 stars 0 forks source link

Issue with Publishing to Shinyapps #25

Open krangaraju opened 9 months ago

krangaraju commented 9 months ago

@JasonSills I created the dashboard and ran it fine but when trying to publish after connecting to Shinyapps.io account, I am getting an error stop("aborting snapshot due to pre-flight validation failure") Error in renv_snapshot_validate_report(valid, prompt, force) : aborting snapshot due to pre-flight validation failure Calls: ... snapshotRenvDependencies -> -> renv_snapshot_validate_report Execution halted

Could you please advise how I can fix this error and publish successfully?

JasonSills commented 9 months ago

@krangaraju

First, try quitting and restarting RStudio.

krangaraju commented 9 months ago

@JasonSills I tried that. I also tried reinstalling renv and rsconnect. Now I am not even able to Run the document unfortunately. I might have messed up something big time unfortunately.

JasonSills commented 9 months ago

@krangaraju Try reinstalling and updating all of the packages used in the dashboard.

krangaraju commented 9 months ago

@JasonSills I reinstalled all packages and now I am able to recreate the dashboard on my computer but still unable to publish to my Shinyapps. Error in createAppManifest(): ! All packages must be installed from a reproducible location. ✖ Can't re-install packages installed from source: ggplot2. ℹ See rsconnect::appDependencies() for more details. Backtrace: ▆

  1. └─rsconnect::deployApp(...)
  2. └─rsconnect:::bundleApp(...)
  3. └─rsconnect:::createAppManifest(...)
  4. └─rsconnect:::bundlePackages(...)
  5. └─rsconnect:::checkBundlePackages(deps, call = error_call)
  6. └─cli::cli_abort(...)
  7. └─rlang::abort(...) Execution halted
JasonSills commented 9 months ago

@krangaraju - are you using ggplot2 in your dashboard? This could be the issue. Go ahead and send me your RMD file in an email.