ms609 / Ternary

Create ternary plots in R
https://ms609.github.io/Ternary/
32 stars 3 forks source link

Cannot start Ternary shiny app #56

Closed psb1618 closed 2 years ago

psb1618 commented 2 years ago

In Windows 10 (fully updated), with the current version of R, the command... Ternary::TernaryApp() ... restults in the following error message: "Error: Could not find example directory. Try re-installing 'Ternary'." Please, advise! (Note: Ternary has been installed and re-installed without errors message.)

ms609 commented 2 years ago

Thanks for the report and sorry for the inconvenience!

Did you install Ternary from CRAN, or from Github? If the latter, try reinstalling with devtools::install_github("ms609/Ternary", args="--recursive")

Does the R command system.file('TernaryApp', package = 'Ternary') return a path on your computer? If so, could you navigate to this folder: is it empty?

psb1618 commented 2 years ago

Ternary was installed two ways, neither of which solved the problem: from CRAN, and by downloading the ZIP from Github and installing the package manually. (Typing devtools::... returns various error messages saying that developer tools and whatnot need to be installed, and that led me to a rabbit hole of increasing demands to install more and more programming tools for R package developers.) The Ternary package is showing up in the library directory. The R command system.file... did not return a path on the computer. Please advise!

ms609 commented 2 years ago

Thanks. This information has helped me to diagnose the problem (I think!). The immediate workaround is to go down the devtools route, which will need you to install git and the development tools (sorry, I know that's a headache!).

Meanwhile, I'll prepare a fix to push to CRAN once the server re-opens for submissions this week. Sorry for the inconvenience!

ms609 commented 2 years ago

Fixed in v2.0.0, now submitted to CRAN.

In the meantime, to install the app locally, after downloading the latest ZIP from GitHub, download https://github.com/ms609/TernaryApp/archive/refs/heads/master.zip and unzip its contents to the location given by system.file("TernaryApp", package = "Ternary").

If the files aren't available locally, TernaryApp() will nwo run shiny::runGitHub("ms609/TernaryApp") to download and launch the app directly from the relevant GitHub server.