Skip to content

Commit

Permalink
remove the getFromNamespace() hacks, since rmarkdown is on CRAN now
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Oct 13, 2014
1 parent 3cbe094 commit 210858b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/utils-vignettes.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ body(vweave_docco_classic)[5L] = expression(rocco(
))

vweave_rmarkdown = vweave
body(vweave_rmarkdown)[5L] = expression(getFromNamespace('render', 'rmarkdown')(
body(vweave_rmarkdown)[5L] = expression(rmarkdown::render(
file, encoding = encoding, quiet = quiet, envir = globalenv()
))

Expand Down Expand Up @@ -107,9 +107,7 @@ html_vignette = function(
after_body = system.file('misc', 'vignette.html', package = 'knitr')
)
) {
# TODO: replace this with rmarkdown::html_document when rmarkdown is on CRAN
html_document = getFromNamespace('html_document', 'rmarkdown')
html_document(
rmarkdown::html_document(
..., fig_caption = fig_caption, theme = theme, hightlight = highlight,
css = css, includes = includes
)
Expand Down

0 comments on commit 210858b

Please sign in to comment.