coatless-rpkg / assignr

Tools for Educators Writing Assignments in RMarkdown

Home Page:https://r-pkg.thecoatlessprofessor.com/assignr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generating only Rmd files for Solution and Assignments

sukhjitsehra opened this issue · comments

Hi,

I want to generate only the Rmd files for Solution and Assignments without html, pdf and tex version.

Any parameter value that can help to generate the desired results.

Thanks

@sukhjitsehra not yet.

Can you provide more details about why you want to avoid rendering output files?

Thanks @coatless

As I provide RMD files to students, so I wanted to know if any option/parameter can create only RMD files for assign and soon.

@sukhjitsehra implemented a boolean flag in #10

Can you give it a go by using:

if(!requireNamespace('remotes')) install.packages('remotes')

remotes::install_github('r-assist/assignr@render-flag')

Then:

library("assignr")

hw00_file = get_example_filepath("hw00-main.Rmd")
assignr(hw00_file, "test", render_files = FALSE)

@coatless
I encountered the following error.

remotes::install_github('r-assist/assignr@render-flag')
Downloading GitHub repo r-assist/assignr@render-flag
Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL 'https://api.github.com/repos/r-assist/assignr/tarball/render-flag'

@sukhjitsehra it was merged into the master. Feel free to download it with:

if(!requireNamespace('remotes')) install.packages('remotes')

remotes::install_github('r-assist/assignr')

Great thanks It worked