Skip to content

v0.2.0

Compare
Choose a tag to compare
@tobiasraabe tobiasraabe released this 16 Apr 15:46
· 27 commits to main since this release
78bfa18

Highlights

This release adds a new interface to pytask-r which is explained in the readme.

The path to the script is now part of the decorator.

import pytask


@pytask.mark.r(script="script.r")
@pytask.mark.produces("out.rds")
def task_run_r_script():
    pass

Passing dependencies, products or other information to the R script is a problem of the past. Now, all the information can serialized to a .json or .yaml file. The path to this file is passed to the R script. Inside the script, you can read the serialized information which gives you a dictionary like this:

{
    "depends_on": ...,
    "produces": ...,
    ...
}

What's Changed

Full Changelog: v0.1.1...v0.2.0