Permalink
Browse files

mention `installr` package of @talgalili for Windows users if they mi…

…ss `pandoc`
  • Loading branch information...
1 parent 8128b59 commit e2d55f8dcecc9a63a17b76c1b01ef3d8fb4be040 @daroczig daroczig committed Mar 23, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 R/convert.R
View
@@ -48,8 +48,11 @@ openFileInOS <- function(f) {
Pandoc.convert <- function(f, text, format = 'html', open = TRUE, options = '', footer = TRUE, proc.time, portable.html = TRUE) {
## check for Pandoc
- if (system('pandoc -v') != 0)
+ if (system('pandoc -v') != 0) {
+ if (grepl("w|W", .Platform$OS.type))
+ message('You may install Pandoc easily with "install.pandoc()" from the "installr" package.')
stop("It seems Pandoc is not installed or path of binary is not found. Did you restarted R after Pandoc install? See installation details by running:\n\n\t readLines(system.file('includes/html/footer.html', package='pander'))\n")
+ }
## dealing with provided character vector
if (!missing(text)) {

1 comment on commit e2d55f8

@talgalili

Cool, thanks :)

Please sign in to comment.