Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2.31 KB

README.md

File metadata and controls

72 lines (50 loc) · 2.31 KB

tmongr

Version R build status Codecov test coverage GitHub open issues License: LGPL v3 Doc

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.

How to install the package

remotes::install_github("mong/tmongr")

Running SAS code

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

Running the app

Run the R-code in data-raw/test-run.R to run the app locally with newly created data.

Docker

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.

Build

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 .

Run

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.