-
Notifications
You must be signed in to change notification settings - Fork 236
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
Scaffold support for R files #476
Comments
Hi @jaesmin! Unfortunately, In the meantime, you can use our R example to get started quickly: https://github.com/ploomber/projects/tree/master/templates/spec-api-r If you have ploomber installed, you can get the example executing: ploomber examples -n templates/spec-api-r -o r-example Then move to the ploomber build Note that for R to work with Ploomber, you need to install and configure Let me know if you're able to run the R example, if you have further questions, you can join our Slack community: https://ploomber.io/community Thanks for your feedback! |
Hi, this has been fixed in Ploomber 0.14.5 Quick example: # upgrade
pip install ploomber --upgrade
# get example
ploomber examples -n templates/spec-api-r -o example
# move to folder
cd example Edit tasks:
# use plain R scripts
- source: raw.R
product:
# this is the executed version of your script
# you can review tables and charts here
nb: output/raw.html
data: output/raw.csv
- source: clean.R
product:
nb: output/clean.html
data: output/clean.csv
# R markdown files also supported
- source: plot.Rmd
product: output/plot.html
# my new task
- source: new-task.Rmd
product: output/new-task.html Then: # add new task
ploomber scaffold
# build pipeline
ploomber build If you're using RStudio, you can run the following to inject input paths on each file: # inject cells
ploomber nb --inject
# now open any .Rmd files and execute them More on that here: https://docs.ploomber.io/en/latest/user-guide/editors.html Feel free to ask any questions and please submit any feedback you may have! |
We just uploaded an R screencast :) https://www.youtube.com/watch?v=AOd7JHXpchc |
Amazing. Thank you! |
Forgot to post the blog post URL. Reach out if you have feedback questions :) |
Hello!
Running
ploomber scaffold
with a pipeline.yaml containing .R or .Rmd files returns this error, "This command does not support adding tasks with extension ".R", valid ones are .py and .sql."Is
scaffold
able to create a pipeline with R files?Thank you,
Jae
The text was updated successfully, but these errors were encountered: