rmarkdown (version 0.1.2)

pandoc_path_arg: Transform path for passing to pandoc

Description

Transform a path for passing to pandoc on the command line. Calls path.expand on all platforms. On Windows, transform it to a short path name if it contains spaces, and then convert backslashes to forward slashes

Usage

pandoc_path_arg(path)

Arguments

path

Path to transform

Value

Transformed path that can be passed to pandoc on the command line