asiripanich / emdash

An e-mission deployer's dashboard. See https://github.com/e-mission/e-mission-docs.
https://emdash.amarin.dev
Other
6 stars 3 forks source link

Editing and debugging the dashboard in RStudio #25

Closed allenmichael099 closed 3 years ago

allenmichael099 commented 3 years ago

Is there a way to make changes to the dashboard in RStudio without having to reinstall the package each time a change is made? I cloned emdash on my computer, and each time I want to test out my new changes, I use something like this:

detach("package:emdash", unload = TRUE) remotes::install_local(path = 'C:/Users/mallen2/emdash',upgrade="never",force = TRUE) library(emdash) emdash::run_app(mongo_url = 'mongodb://localhost:27017')

asiripanich commented 3 years ago

hi @allenmichael099, try ‘devtools::load_all()’.

https://www.r-project.org/nosvn/pandoc/devtools.html

asiripanich commented 3 years ago

No need to do ‘library(emdash)’ after.

asiripanich commented 3 years ago

For debugging see https://shiny.rstudio.com/articles/debugging.html.