Electrical Analytics prototype user interface based on the R Shiny framework.
"shiny"
"ggplot2"
"lubridate"
"ggthemes"
"devtools"
"ggTimeSeries"
- Usedevtools::install_github('Ather-Energy/ggTimeSeries')
"DT"
"RPostgreSQL"
"ggpmisc"
"dplyr"
"shinyWidgets"
"ggalt"
- Usedevtools::install_github('hrbrmstr/ggalt')
"dygraphs"
"shinyjs"
"RcppTOML"
-
Install R from r-project.org.
-
libcurl and libproj dev packages are required under ubuntu. Install if necessary.
-
After installing R, clone this repo and install the dependencies using:
R -f install_deps.R
-
If that doesn't work, use
install.packages([package_name])
to manually install the packages listed above. See the note forggTimeSeries
andggalt
. -
On linux,
libpq-dev
is required for RPostgreSQL, so (for ubuntu-like distros) run:sudo apt install libpq-dev
-
Run the app:
- From the interpreter use
shiny::runApp('path/to/repo')
- From the command line use
R -e "shiny::runApp('path/to/repo', port=4815, launch.browser=TRUE)"
Note that database credentials are not included in the github source, for security reasons.