Skip to content

Commit

Permalink
Generate Rmd by default
Browse files Browse the repository at this point in the history
This is so often what is required.
  • Loading branch information
richfitz committed May 6, 2015
1 parent 9354166 commit db3dbab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/sowsear.R
Expand Up @@ -51,7 +51,7 @@ process.sowsear <- function(blocks, type) {
out
}

sowsear <- function(script, type=NULL, output=NULL) {
sowsear <- function(script, type="Rmd", output=NULL) {
types <- c("Rnw", "Rmd")
if ( is.null(type) ) {
if ( is.null(output) )
Expand Down
7 changes: 4 additions & 3 deletions man/sowsear.Rd
Expand Up @@ -10,7 +10,7 @@
with three or more hashes ("###") are ignored.
}
\usage{
sowsear(script, type=NULL, output=NULL)
sowsear(script, type="Rmd", output=NULL)
}
\arguments{
\item{script}{An R script file.}
Expand All @@ -20,8 +20,9 @@ sowsear(script, type=NULL, output=NULL)
the extension of \code{output}.}
\item{output}{An output file name. If not given, it is constructed
from the input file name and the conversion type. At least one of
\code{output} and \code{type} must be given.}
from the input file name and the conversion type. If neither
\code{output} nor \code{type} are given, output will be an Rmd file
with the same base name as \code{script}.}
}
\value{
Invisible \code{TRUE} on success.
Expand Down

0 comments on commit db3dbab

Please sign in to comment.