Skip to content

Commit

Permalink
IMPROVED instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
shanebdavis committed Jan 11, 2020
1 parent 79f5cb4 commit 9404277
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
try(source("renv/activate.R"))
try(install.packages("startup"))
try(if (!"startup" %in% installed.packages()) {renv::install("startup")})
try(if (!"crayon" %in% installed.packages()) {renv::install("crayon")})
try(startup::startup())

cat("NOTE: run 'renv::restore()' to install pacakges\n run 'renv::snapshot()' after installing new packages")
cat(
crayon::green("================================================================="),
crayon::green("NOTE: run 'renv::restore()' to install packages"),
crayon::green(" run 'shiny::runApp()' to run the app locally"),
crayon::green(" run 'rsconnect::deployApp()' to deploy to shinyapps.io"),
crayon::green("See README.md for more.\n"),
fill = TRUE
)

0 comments on commit 9404277

Please sign in to comment.