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

Clone resources to assign/soln directories

coatless opened this issue · comments

Clone any images files in hw**-main directory to all locations where the Rmd file is made.

So I finally decided to use assignr instead of my hacked together script. Currently running into this issue. Also, cannot simply add the files to the assign/soln directories as it seems they are being deleted and re-created?

Edit: Fixing isn't mission critical, I do have a workaround. Just noting that there are still users.

@daviddalpiaz tried a lazy approach in #11.

Try it out with:

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

remotes::install_github('r-assist/assignr@file-dependencies')

Idea: any files in hw_dir of hw_dir/hw00-main.Rmd should automatically get moved into the build directory.

Hmmm. That didn't seem to do the trick. Files don't appear to be copied to assign/soln directories.

@daviddalpiaz re-install using the above steps.

I'm now using the full file paths whereas before I was just selecting only the file name to determine dependencies.

017b9c2

Perfect. Thanks!