Skip to content
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

Clone resources to assign/soln directories #3

Closed
coatless opened this issue Jan 21, 2018 · 5 comments · Fixed by #11
Closed

Clone resources to assign/soln directories #3

coatless opened this issue Jan 21, 2018 · 5 comments · Fixed by #11

Comments

@coatless
Copy link
Collaborator

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

@daviddalpiaz
Copy link
Contributor

daviddalpiaz commented Sep 8, 2020

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.

@coatless
Copy link
Collaborator Author

coatless commented Sep 9, 2020

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

@daviddalpiaz
Copy link
Contributor

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

@coatless
Copy link
Collaborator Author

coatless commented Sep 9, 2020

@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

@daviddalpiaz
Copy link
Contributor

Perfect. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants