Skip to content

Commit

Permalink
remove screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
vnijs committed Sep 16, 2016
1 parent 4a4af96 commit aca216b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build/remove_screenshots.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## based on https://gist.github.com/mages/1544009
cdir <- setwd("~/gh/radiant.multivariate/inst/app/tools/help")

## remove all local png files
list.files("./figures/", pattern = "*.png")
unlink("figures/*.png")
check <- list.files("./figures/", pattern = "*.png")
stopifnot(length(check) == 0)
cat("--", file="figures/place_holder.txt")

fn <- list.files(pattern="\\.(md|Rmd)$")
for (f in fn) {
f <- fn[1]
org <- readLines(f)
changed <- gsub("figures_multivariate/", "https://radiant-rstats.github.io/docs/multivariate/figures_multivariate/", org)
cat(changed, file=f, sep="\n")
}

setwd(cdir)

0 comments on commit aca216b

Please sign in to comment.