Do you want to share your content on R-bloggers? Click here if you have a blog, or here If you don’t.
Due to delays with my stock market payment, if this message is useful for you, I kindly request a minimal donation Buy a coffee for me. It will be used to continue my open source efforts. The complete explanation is here: A personal message from an Open Source employee. If you play the electric guitar, the same stock market chaos led me to make my guitar pedals and do it -self -kits hobby in a company, and you can check it here.
I have uploaded a shiny app with Wing Unpleasant Glossy apps For a live demo. I had to solve a few problems with the implementation, so here are the steps I used. I hope this is useful 🙂
After making a shiny app skeleton with golem::create_golem("pkgname") You can make an app like the 2 × 2 Cobb-Douglas General balance shop (Code on [GitHub(https://github.com/pachadotdev/cobbdouglasge]).
When I tried to implement that Cobb-Douglas app Shinyapps.io I received this message:
> rsconnect::deployApp() ℹ Capturing R dependencies The following package(s) were installed from an unknown source: - cobbdouglasge [0.0.0.9000] renv may be unable to restore these packages in the future. Consider reinstalling these packages from a known source (e.g. CRAN). Error in renv_snapshot_validate_report(valid, prompt, force) : aborting snapshot due to pre-flight validation failure
The cause of the problem is that I installed the room when testing my app devtools::install()And ShinyApps needs Cran or Github as a source for the dependencies.
To remedy that, I added the following to dev/03_deploy.R Without carrying out it:
golem::add_shinyappsio_file()
remotes::install_github("pachadotdev/cobbdouglasge")
use_git_ignore("rsconnect/")
rsconnect::deployApp()I know pak is the standard nowadays, but it gave me a compilation error when I tried to install it, so I used remotes.
As an optional step to save space in my ShinyApps account, I made the file .rscignore Contains:
.here CODE_OF_CONDUCT.md LICENSE* NEWS* README* dev man vignettes tests
Then I walked the previous piece with which I could implement the Cobb-Douglas app without errors.
Related
#Implement #Golem #shiny #app #Shinyapps.io #RBloggers


