https://github.com/kdm9/xspin
hacks around knitr::spin() for shell and python scripts
https://github.com/kdm9/xspin
Last synced: 2 months ago
JSON representation
hacks around knitr::spin() for shell and python scripts
- Host: GitHub
- URL: https://github.com/kdm9/xspin
- Owner: kdm9
- License: other
- Created: 2021-10-19T10:20:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-30T05:23:35.000Z (over 3 years ago)
- Last Synced: 2025-02-14T18:53:03.063Z (4 months ago)
- Language: R
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xspin
[](https://github.com/kdm9/xspin/actions)
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:
```r
remotes::install("kdm9/xspin")
```## Example
```r
# "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](tests/testthat/data/) for example inputs and expected Rmd outputs.