This is a R package to produce dynamisk tabellverk web pages. The web page can be found here: https://www.skde.no/pasientstrommer/ The data in itself is not included in this package.
remotes::install_github("mong/tmongr")
Running the following SAS code will produce the aggregated data used by the shiny app:
%let sasmappe = <folder>\tmongr\sas;
%let filbane = <another_folder>\felleskoder\master;
%let prosjekt_filbane = <folder>;
/* This will run the code */
%include "&sasmappe\avd_tabell.sas";
The following data files will be produced:
&prosjekt_filbane\tmongrdata\fag.csv
&prosjekt_filbane\tmongrdata\fag2.csv
Run the R-code in data-raw/test-run.R
to run the app locally with newly created data.
This R package can be added to a docker image together with all R and system dependencies needed to run the the tmongr web application from any docker host.
Since the tmongr R package is to be installed into the image please make sure to build the source tarball first. From a system command terminal navigate into the tmongr-directory and run:
R CMD build .
Then, build the docker image:
docker build -t tmongr .
To run the docker container from a system command terminal do:
docker run -p 80:80 tmongr
Then, open a web browser window and navigate to your localhost at port 80 to use the tmongr web application.
To stop the docker container hit Ctrl + c
in the system comman terminal.