Skip to content

Commit

Permalink
Replace quote() with rlang::expr() in run.R
Browse files Browse the repository at this point in the history
Begins to address #200. Tries to support the !! operator
and quosures.
  • Loading branch information
wlandau committed Jan 30, 2018
1 parent 7412d4b commit c89f028
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Imports:
parallel,
plyr,
R.utils,
rlang,
rprojroot,
stats,
storr (>= 1.1.0),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ importFrom(parallel,parLapply)
importFrom(parallel,stopCluster)
importFrom(plyr,ddply)
importFrom(plyr,dlply)
importFrom(rlang,expr)
importFrom(rprojroot,find_root)
importFrom(stats,coef)
importFrom(stats,complete.cases)
Expand Down
1 change: 1 addition & 0 deletions R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#' mclapply parLapply stopCluster
#' @importFrom plyr ddply dlply
#' @importFrom R.utils isPackageLoaded withTimeout
#' @importFrom rlang expr
#' @importFrom rprojroot find_root
#' @importFrom stats coef complete.cases lm rnorm rpois runif setNames
#' @importFrom storr encode64 storr_environment storr_rds
Expand Down
2 changes: 1 addition & 1 deletion R/run.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ give_up <- function(target, config){
wrap_in_try_statement <- function(target, command){
paste(
target,
"<- evaluate::try_capture_stack(quote({\n",
"<- evaluate::try_capture_stack(rlang::expr({\n",
command,
"\n}), env = config$envir)"
)
Expand Down

0 comments on commit c89f028

Please sign in to comment.