jackhump / leafviz

Just the leafviz parts of Leafcutter
Other
11 stars 2 forks source link

finish building app into package #1

Closed jackhump closed 4 years ago

jackhump commented 4 years ago

Currently, the user has to install the R package and clone the repo in order to run the app.

Ideally, the user would just install the app and then run the app through R, rather than having to use the command line.

MercedesBentata commented 4 years ago

@jackhump Is this warning related to the issue you posted?

Error in shinyAppDir(x) : App dir must contain either app.R or server.R. Calls: ... as.shiny.appobj -> as.shiny.appobj.character -> shinyAppDir Execution halted

If so, I did not quite understand what I have to do to solve it if I am running the code in linux/cluster?

Thanks in advance.

jackhump commented 4 years ago

Hi Mercedes,

yes at the moment you need to run the run_leafviz.R script within the folder that contains the ui.R and server.R files.

jackhump commented 4 years ago

this should be leafviz/scripts/

MercedesBentata commented 4 years ago

Thank you very much! Not it is working fine.

MercedesBentata commented 4 years ago

*Now

jackhump commented 4 years ago

Hi Mercedes,

I just got the app working as part of the R package rather than an external script so you should be able to now just type the following in an R session:

library(leafviz)
leafviz("path/to/your/file.RData")

I'd appreciate if you could reinstall and let me know if this new functionality works for you.

Best wishes,

Jack