pandoc_convert fails when a path contains unexpanded tilde and a space #2089
Labels
bug
an unexpected problem or unintended behavior
next
to consider for next release
theme: paths
path related improvment / issue
This has come up because {rappdirs} created paths containing a tilde and a space r-lib/rappdirs#37, and that causes pandoc_convert to fail with error
I see this behaviour on both MacOS and Windows.
For example, on Mac:
~/foo bar/test.md
with the content of# test
rmarkdown::pandoc_convert("~/foo bar/test.md")
failsrmarkdown::pandoc_convert("/Users/dean/foo bar/test.md")
rmarkdown::pandoc_convert(path.expand("~/foo bar/test.md"))
I'm not sure if the problem is with the pandoc software itself or with the rmarkdown function. Regardless, if the bug is in pandoc, then rmarkdown can perhaps fix this by always expanding tilde
The text was updated successfully, but these errors were encountered: