Skip to content

Commit

Permalink
doc improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Dec 12, 2017
1 parent e857c52 commit 310505f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions R/lift.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#'
#' @details
#' After running \link{lift}, run \link{render_docker} on the document to
#' render the Dockerized R Markdown document using Docker containers.
#' render the containerized R Markdown document using Docker containers.
#' See \code{vignette('liftr-intro')} for details about the extended
#' YAML front-matter metadata format used by liftr.
#'
Expand Down Expand Up @@ -57,7 +57,6 @@ lift = function(
stop('input file does not exist')

if (!use_config) {

# locate YAML metadata block
doc_content = readLines(normalizePath(input))
header_pos = which(doc_content == '---')
Expand Down Expand Up @@ -85,16 +84,13 @@ lift = function(
stop('Cannot find `liftr` option in file header')

opt_list = opt_all_list$liftr

}

if (use_config) {

liftrfile_path = paste0(file_dir(input), '/', config_file)
if (!file.exists(normalizePath(liftrfile_path)))
stop('The YAML config file does not exist')
opt_list = yaml.load_file(liftrfile_path)

}

# base image
Expand Down
2 changes: 1 addition & 1 deletion man/lift.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 310505f

Please sign in to comment.