README.md

xspin

R-CMD-check

A version of knitr::spin() which functions on languages other than R. Now one can spin() a python/shell/R script to a .Rmd, and compile outputs from there.

Installation

You can install the development version of xspin like so:

remotes::install("kdm9/xspin")

Example

# "spin" script to notebook
xspin::xspin(input="script.sh", output="script.Rmd")

# a one-stop-shop: xspin() followed by rmarkdown::render().
xspin::xweave(input="script.sh")

See the test py/sh files for example inputs and expected Rmd outputs.



kdm9/xspin documentation built on Dec. 21, 2021, 5:22 a.m.