Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #364

Merged
merged 43 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4a618fc
fix release generator script
tmelliott Jul 5, 2023
8812809
Track 'iNZightVIT/Lite2' changes (#293)
tmelliott Aug 18, 2023
26d7c4b
lite_config
chrk623 Sep 11, 2023
ee5c57e
fix(server): Pre-build df and assign to rvalues
tmelliott Sep 26, 2023
e497ccf
prevent reading ENV unless required
chrk623 Oct 1, 2023
d6bd721
delim option on failed import (#340)
chrk623 Oct 5, 2023
7dcca62
remove keys after reading data
chrk623 Oct 8, 2023
71346fe
rename plot_selector (#342)
chrk623 Nov 13, 2023
92ba2f1
Update NEWS.md
tmelliott Nov 19, 2023
33b6c03
Merge dev
tmelliott Dec 8, 2023
e521220
(shared): Generalize handling of config
tmelliott Dec 8, 2023
942875d
fix(shared): Store config in session$userData
tmelliott Dec 8, 2023
f945820
fix(shared): Find remaining variables to prefix
tmelliott Dec 9, 2023
27c8b05
fix(ui): Remove export data for CAS
tmelliott Dec 9, 2023
bb8f98f
fix(shared): Uncommnet export data component
tmelliott Dec 9, 2023
4408be4
fix(shared): Disable menu options in CAS mode
tmelliott Dec 10, 2023
9506784
Merge pull request #343 from iNZightVIT/feature/configurable
tmelliott Dec 11, 2023
3a45b35
remove gpairs dependency
tmelliott Dec 11, 2023
6a41c3e
update news
tmelliott Dec 11, 2023
cf8feed
remove gpairs from imports (closes #25)
tmelliott Dec 11, 2023
4a758e7
fix(server): Set shiny host to 0.0.0.0
tmelliott Dec 11, 2023
35b4f7e
update the correct dockerfile
tmelliott Dec 11, 2023
de9f5c6
fix(server): Disable loading R directory (does not exist)
tmelliott Dec 11, 2023
1e82d20
fix arg
tmelliott Dec 11, 2023
51b8951
Merge pull request #346 from iNZightVIT/feature/remove-gpairs
tmelliott Dec 11, 2023
a40db12
Merge pull request #347 from iNZightVIT/feature/tidy-dockerfile
tmelliott Dec 11, 2023
8c38308
Remove log error message (#348)
tmelliott Dec 11, 2023
68d8d10
additional import options (#353)
tmelliott Dec 18, 2023
9ef6513
feat(ui): #352 Track disconnects (#355)
tmelliott Dec 19, 2023
18128a6
Bugfix/351 residual flipping (#354)
tmelliott Dec 19, 2023
c1d94b5
remove terourou
tmelliott Dec 19, 2023
5423790
Data lifecycle management (#349)
tmelliott Dec 19, 2023
b2d3a10
bump version (#357)
tmelliott Dec 20, 2023
19c1b3b
dynamic config (#358)
tmelliott Dec 21, 2023
37f9a78
Release/2023.12 -> dev (#361)
tmelliott Dec 21, 2023
2c21255
Merge branch 'master' into dev
tmelliott Dec 21, 2023
ff70446
remove multivariate module
chrk623 Dec 21, 2023
79b5f41
activate multivariate
tmelliott Dec 21, 2023
2dc6579
add iNZightMultivariate to install
tmelliott Dec 21, 2023
f51fb53
Update NEWS
tmelliott Dec 21, 2023
8c79105
update default env
tmelliott Dec 21, 2023
1411d75
Format and tidy code (#362)
tmelliott Dec 22, 2023
2822376
update news
tmelliott Dec 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.git*
.git*
3 changes: 1 addition & 2 deletions .env.default
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
CAS_URL=
CAS_KEY=
LITE_CONFIG='{}'
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ data/Surveys/*.svydesign
rsconnect
.vscode

panels/**/*.html

# renv files
.Rprofile
renv.lock
renv/
.Rapp.history

# misc files
NEWS.html
Expand Down Expand Up @@ -148,4 +151,4 @@ $RECYCLE.BIN/

# From Lite 2
.env
.env.local
.env.local
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@ Imports:
tibble,
viridis,
wkb
Suggests:
iNZightMultivariate
Additional_repository: https://r.docker.stat.auckland.ac.nz
RoxygenNote: 6.0.1
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ RUN R -e "remotes::install_github(\
repos = c('https://cloud.r-project.org'), \
dependencies = TRUE \
)"
RUN R -e "install.packages(\
c('iNZightMultivariate'), \
repos = c( \
'https://r.docker.stat.auckland.ac.nz', \
'https://cloud.r-project.org'\
), \
dependencies = TRUE \
)"
RUN rm .Renviron
COPY . /srv/shiny-server
RUN cp /srv/shiny-server/VARS.default /srv/shiny-server/VARS \
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE

This file was deleted.

18 changes: 13 additions & 5 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Pre-release, 2023.12
# December 2023

- fix bug in Model Fitting module (panel had a duplicate ID, resulting in some weird behaviour)
- remove gpairs dependency
- fix bug where variables swap after saving residuals
## Changes

- Add additional advanced options to the 'Import Data' dialog (delimiter, decimal, etc.).
- Integrates instance-configurability to allow various instances to run on the same deployment (e.g., the Census at School build). This will eventually replace the 'lite2' instance used by CaS.
- Removes 'gpairs' dependency.
- Temporary data files are now deleted after import, instead of remaining on the filesystem until the temporary directory is cleared.

## Fixes

- major update: integrate instance-configurability to allow various instances to run on the same deployment (e.g., the Census at School build)
- Fixes bug in Model Fitting module (panel had a duplicate ID, resulting in some weird behaviour).
- Fixes bug where variables swap after saving residuals, and fitted line is removed.
- Installs iNZightMultivariate package so the module can be used.
- Fix bug where help panels were not being displayed

---

Expand Down
118 changes: 59 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
iNZight *Lite*
==============================

# iNZight _Lite_

This is the online version of iNZight (http://lite.docker.stat.auckland.ac.nz)


## To run locally:

### With Docker
Expand All @@ -19,122 +16,125 @@ iNZight Lite is a shiny app, so you can run it locally if you have R installed.

1. [Download and unzip](https://github.com/iNZightVIT/Lite/archive/master.zip) or clone this repository

_Note: if you use Git to clone the repository, you can easily keep Lite updated via `git pull`_
_Note: if you use Git to clone the repository, you can easily keep Lite updated via `git pull`_

2. Open R and set the working directory to the Lite folder

```{r}
setwd("/path/to/Lite")
```

3. Install the `devtools` R package (if you don't already have it):

```{r}
install.packages("devtools")
```

4. Install package dependencies (NOTE: we host iNZight packages on our own server, see below)

```{r}
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R",
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R",
"https://cloud.r-project.org/"))
```

5. Run the iNZight Lite app!

```{r}
shiny::runApp()
```

### RStudio users:

1. __If you have git installed__: in RStudio > File > New Project > Version Control > Git
1. **If you have git installed**: in RStudio > File > New Project > Version Control > Git

- For the URL, enter: `https://github.com/iNZightVIT/Lite.git`
- And choose a location to save the app
- Then Create Project

- For the URL, enter: `https://github.com/iNZightVIT/Lite.git`
- And choose a location to save the app
- Then Create Project

__If you don't have git__:

- [Download and unzip](https://github.com/iNZightVIT/Lite/archive/master.zip) the app
- In the folder, double click `Lite.rproj` to open the project in RStudio
**If you don't have git**:

- [Download and unzip](https://github.com/iNZightVIT/Lite/archive/master.zip) the app
- In the folder, double click `Lite.rproj` to open the project in RStudio

2. To install the dependencies, enter the following into the Console:

```{r}
install.packages("devtools") ## skip if you know you already have devtools
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R",
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R",
"https://cloud.r-project.org/"))
```

3. To run iNZight Lite, open the `ui.R` file and click the __Run App__ button at the top.

3. To run iNZight Lite, open the `ui.R` file and click the **Run App** button at the top.

Send bug reports/errors to inzightlite_support@stat.auckland.ac.nz.

Directories:
------------
## Directories:

- 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.
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".
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.
This directory contains the gui, server, help, and other functions for each module.

## Main files:

Main files:
-----------
- README:
Documentation for iNZight *Lite*. Update as required.
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.
Defines functions and variables that are used globally. For now, all non-GUI functions are stored here.

- server.R:
Script for shiny server.
Script for shiny server.

- ui.R:
Defines the main GUI.
Defines the main GUI.

- functions.R
Defines al functions used in iNZight-lite, some of them are also in iNZightTools.
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*.
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".
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:
+ [Directory] N_(sub-)panel-name
+ [File] 1_panelname-panel-gui.R
+ [File] 2_panelname-panel-server.R
+ [File] 3_panelname-panel-help.R
+ [File] 4_panelname-panel-null.R
+ [File] 5_panelname-panel-other.R

iNZight-lite URL feature
------------------------

Some GET parameters can be added to the URL to access iNZight-lite. In the moment
This directory contains the gui, server, help, and other functions for each module. The directory/file names will be of the form:
- [Directory] N\_(sub-)panel-name
- [File] 1_panelname-panel-gui.R
- [File] 2_panelname-panel-server.R
- [File] 3_panelname-panel-help.R
- [File] 4_panelname-panel-null.R
- [File] 5_panelname-panel-other.R

## iNZight-lite URL feature

Some GET parameters can be added to the URL to access iNZight-lite. In the moment
the following are implemented.

- url:
An URL to a dataset sitting somewhere in the internet.
An URL to a dataset sitting somewhere in the internet.
- example:
A name of an data set inside the data folder.
A name of an data set inside the data folder.
- land:
The place where iNZight-lite starts. If not specified it is "About". Three
possibilities (visualize, timeSeries, regression).
The place where iNZight-lite starts. If not specified it is "About". Three
possibilities (visualize, timeSeries, regression).
- x:
The x variable in the visualize module
The x variable in the visualize module
- y:
The y variable in the visualize module
The y variable in the visualize module
- time:
The variable in time series where the dates are stored.
-seriesVars
A comma seperated list of column names. This names are set in time series to be
plotted
The variable in time series where the dates are stored.
-seriesVars
A comma seperated list of column names. This names are set in time series to be
plotted
- Y:
The dependend variable in regression.
The dependend variable in regression.
- predict:
Comma seperated list with predictor variables.
Comma seperated list with predictor variables.
- confound:
Comma seperated list for confounding variables.


Comma seperated list for confounding variables.
Loading