This is the online version of iNZight (http://lite.docker.stat.auckland.ac.nz)
make build TAG=latest
to build the latest imagemake run TAG=latest
to run on localhost at port 3838iNZight Lite is a shiny app, so you can run it locally if you have R installed. If you use RStudio, see instructions further down.
Note: if you use Git to clone the repository, you can easily keep Lite updated via git pull
setwd("/path/to/Lite")
devtools
R package (if you don't already have it):install.packages("devtools")
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R",
"https://cloud.r-project.org/"))
shiny::runApp()
If you have git installed: in RStudio > File > New Project > Version Control > Git
For the URL, enter: https://github.com/iNZightVIT/Lite.git
If you don't have git:
In the folder, double click Lite.rproj
to open the project in RStudio
To install the dependencies, enter the following into the Console:
install.packages("devtools") ## skip if you know you already have devtools
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R",
"https://cloud.r-project.org/"))
ui.R
file and click the Run App button at the top.Send bug reports/errors to inzightlite_support@stat.auckland.ac.nz.
data: This directory holds all the data. The data must be placed in sub-directories, which will come up as data categories within iNZight-Lite.
www: This directory is used for graphics and/or web-related files such as .css and .gif/.jpeg/.png javascript files. Images are stored in a sub-directory called "images". Javascript code is stored in a subdirectory "js".
panels: This directory contains the gui, server, help, and other functions for each module.
README: Documentation for iNZight Lite. Update as required.
global.R: Defines functions and variables that are used globally. For now, all non-GUI functions are stored here.
server.R: Script for shiny server.
ui.R: Defines the main GUI.
functions.R Defines al functions used in iNZight-lite, some of them are also in iNZightTools.
data: This directory holds all the data. The data must be placed in sub-directories, which will come up as data categories within iNZight Lite.
www: This directory is used for graphics and/or web-related files such as .css and .gif/.jpeg/.png. Images are stored in a sub-directory called "images".
panels: This directory contains the gui, server, help, and other functions for each module. The directory/file names will be of the form:
Some GET parameters can be added to the URL to access iNZight-lite. In the moment the following are implemented.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.