-
Notifications
You must be signed in to change notification settings - Fork 11
feature request: make litedown more shell friendly #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For now, the shell version would be:
Or R -e 'litedown::roam(open=TRUE);while(TRUE)Sys.sleep(.01)'
# Ctrl + C to stop If you only intend to render one file, call #!/usr/bin/env Rscript
litedown::fuse(commandArgs(TRUE)) Then ./fuse.sh your-file.Rmd If you are looking for a product similar to litedown but doesn't depend on R, you may come back a year later. I have had some wild ideas for quite a while and need to find time to try. |
YAML header should contain all the information and I usually have a project-wide makefile, but an executable script added to a path so I could just do:
or a variation of thereof sounds rad. |
Yes, that would be nice and shouldn't be hard to write (especially on *nix). A true executable?When I said "a year" above, I meant "give me some time next year to learn Rust and reimagine Jupyter" (then a by-product would be a true CLI tool, not just a wrapper shell script). |
Coming here late but as it is related: I also prefer shell (and/or farmed out shell calls from the editor) and FWIW I have been driving rmarkdown and friends for many years now from a simple shell wrapper It would be trivial to extend this to |
I consider myself a minimalist and like the idea of litedown. However, one thing that prevents me from trying litedown more is its focus on users who primarily work within an R session. Indeed, the docs seem to even assume users are using RStudio and frequently talk about the knit button.
I would try litedown more if it could (i) offer a CLI tool or (ii) provide guidance in the docs on how to create a bash wrapper around RScript to use it.
Method (ii) may be easy and straightforward (am i right?).
But knowing that the developer has users like me in mind would certainly encourage me to try litedown more.
I think there are other potential users like me. While litedown is an R package, its main functions are more similar to pandoc/quarto. I think most people use pandoc and quarto from CLI.
The text was updated successfully, but these errors were encountered: