Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace rlang deprecated invoke with exec keyword #18

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 ubuntu:bionic
FROM ubuntu:bionic

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common cmake g++ git supervisor wget
ENV TZ=Etc/UTC
Expand Down
8 changes: 4 additions & 4 deletions R/ExecutableProcess-class.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Executable process
#'
#' @include Process-class.R
#' @importFrom rlang invoke
#' @importFrom rlang exec
#' @field job Attached job to the process
#'
#' @export
Expand All @@ -13,7 +13,7 @@ ExecutableProcess <- R6Class(

#' @description Initialize executable process
#'
#' @param id Id or name of the proces
#' @param id Id or name of the process
#' @param description Shortly what the process does
#' @param parameters Used parameters in the process
#' @param operation Function that executes the process
Expand Down Expand Up @@ -76,8 +76,8 @@ ExecutableProcess <- R6Class(

}
parameterList$job = self$job
result = invoke(self$operation, parameterList)
message("Result invoked in Executable Process")
result = exec(self$operation, !!!parameterList)
message("Result invoked using exec keyword in Executable Process")

return(result)
}
Expand Down
5 changes: 1 addition & 4 deletions R/processes.R
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,4 @@ save_result = Process$new(
job$setOutput(format)
return(data)
}
)



)