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

Delete .Rmd files and associated .html files #121

Closed
xiangzhu opened this issue Sep 3, 2018 · 3 comments
Closed

Delete .Rmd files and associated .html files #121

xiangzhu opened this issue Sep 3, 2018 · 3 comments

Comments

@xiangzhu
Copy link

xiangzhu commented Sep 3, 2018

Sometimes I need to remove some .Rmd files and associated .html files from the project repo. I wonder if it is necessary or possible to let workflowr do this (so that I don't have to do it in command line).

Currently I am doing this as follows:

$ git rm analysis/dgidb_data.Rmd analysis/pos_vs_neg_dgidb.Rmd
rm 'analysis/dgidb_data.Rmd'
rm 'analysis/pos_vs_neg_dgidb.Rmd'

$ git rm docs/dgidb_data.html docs/pos_vs_neg_dgidb.html
rm 'docs/dgidb_data.html'
rm 'docs/pos_vs_neg_dgidb.html'

$ git commit -m 'rmv unused files'
[master aeec2f0] rmv unused files
 4 files changed, 1570 deletions(-)
 delete mode 100644 analysis/dgidb_data.Rmd
 delete mode 100644 analysis/pos_vs_neg_dgidb.Rmd
 delete mode 100644 docs/dgidb_data.html
 delete mode 100644 docs/pos_vs_neg_dgidb.html
@pcarbo
Copy link
Member

pcarbo commented Sep 3, 2018

@xiangzhu See help(wflow_remove).

@xiangzhu
Copy link
Author

xiangzhu commented Sep 3, 2018

@pcarbo Thanks Peter -- this is exactly what I need!

@xiangzhu xiangzhu closed this as completed Sep 3, 2018
@jdblischak
Copy link
Member

@xiangzhu wflow_remove() will also remove any associated figure files.

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

No branches or pull requests

3 participants