1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pandoc.R
\name{pandoc_path_arg}
\alias{pandoc_path_arg}
\title{Transform path for passing to pandoc}
\usage{
pandoc_path_arg(path, backslash = TRUE)
}
\arguments{
\item{path}{Path to transform}
\item{backslash}{Whether to replace forward slashes in \code{path} with
backslashes on Windows.}
}
\value{
Transformed path that can be passed to pandoc on the command line.
}
\description{
Transform a path for passing to pandoc on the command line. Calls
\code{\link[base:path.expand]{path.expand}} on all platforms. On Windows,
transform it to a short path name if it contains spaces, and then convert
forward slashes to back slashes (as required by pandoc for some path
references).
}
|