Browse Source

purl

master
boB Rudis 6 years ago
parent
commit
bacdeb49c4
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 4
      R/purl-rmd.R
  2. 2
      R/strip-rmd.R

4
R/purl-rmd.R

@ -18,7 +18,7 @@ purl_rmd_addin <- function() {
cat(ctx$contents, file = tf1, sep = "\n")
knitr::purl(tf1, output = tf2)
knitr::purl(tf1, output = tf2, quiet = TRUE)
navigateToFile(tf2, line = -1L, column = -1L)
@ -29,7 +29,7 @@ purl_rmd_addin <- function() {
)
} else {
stop("Can only style .R and .Rmd files.", call. = FALSE)
stop("Can only perform operations on Rmd files.", call. = FALSE)
}
}

2
R/strip-rmd.R

@ -30,7 +30,7 @@ strip_rmd_addin <- function() {
)
} else {
stop("Can only style .R and .Rmd files.", call. = FALSE)
stop("Can only perform operations on .Rmd files.", call. = FALSE)
}
}

Loading…
Cancel
Save