Skip to content
/ r-script Public

Executing the R-project's Rscript binary in the AKTIN data warehouse for data extraction and report generation

Notifications You must be signed in to change notification settings

aktin/r-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RScript Java Wrapper

This project provides a lightweight Java wrapper around the Rscript executable, enabling the execution of R scripts from within a Java environment. The Rscripts used for the AKTIN Monatsberichte (AKTIN montly reports) can be found here.

Features

  • Execute R scripts from Java with process timeout and error handling
  • Retrieve the installed R version (Rscript --version)
  • Extract installed R packages and their versions as a Java Map
  • Detects abnormal R script termination and surfaces error messages
  • Includes JUnit tests for typical use cases (version check, timeout, stderr handling)

Usage

Instantiating the Wrapper

import java.nio.file.Paths;
import org.aktin.scripting.r.RScript;

RScript rscript = new RScript(Paths.get("/usr/bin/Rscript"));

About

Executing the R-project's Rscript binary in the AKTIN data warehouse for data extraction and report generation

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages