Skip to content

Commit

Permalink
default dir to .
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed May 6, 2017
1 parent 9677851 commit aa70a96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#' hence you cannot customize these arguments).
#' @export
serve_site = function(...) {
dir = '.'
if (!has_config(dir)) {
warning('There is no config.toml or config.yaml under ', normalizePath(dir))
dir2 = tryCatch(rprojroot::find_rstudio_root_file(), error = function(e) dir)
Expand Down

0 comments on commit aa70a96

Please sign in to comment.