coatless-rpkg / assignr

Tools for Educators Writing Assignments in RMarkdown
https://r-pkg.thecoatlessprofessor.com/assignr/
42 stars 7 forks source link

Generating only Rmd files for Solution and Assignments #9

Closed sukhjitsehra closed 4 years ago

sukhjitsehra commented 4 years ago

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

coatless commented 4 years ago

@sukhjitsehra not yet.

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

sukhjitsehra commented 4 years ago

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.

coatless commented 4 years ago

@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)
sukhjitsehra commented 4 years ago

@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'

coatless commented 4 years ago

@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')
sukhjitsehra commented 4 years ago

Great thanks It worked