You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think some function that are not exported could be very useful, for instance:
# get the path to the pandoc binarypandoc<-function() {
find_pandoc()
file.path(.pandoc$dir, "pandoc")
}
# get the path to the pandoc-citeproc binarypandoc_citeproc<-function() {
find_pandoc()
citeproc_path= file.path(.pandoc$dir, "pandoc-citeproc")
if (file.exists(citeproc_path))
citeproc_pathelse"pandoc-citeproc"
}
# quote args if they need itquoted<-function(args) {
# some characters are legal in filenames but without quoting are likely to be# interpreted by the shell (e.g. redirection, wildcard expansion, etc.) --# wrap arguments containing these characters in quotes.shell_chars<- grepl(.shell_chars_regex, args)
args[shell_chars] <- shQuote(args[shell_chars])
args
}
The text was updated successfully, but these errors were encountered:
I think some function that are not exported could be very useful, for instance:
The text was updated successfully, but these errors were encountered: