Skip to content

Commit f635d92

Browse files
committed
#402 fix pid_generator default value
1 parent cf984a6 commit f635d92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/geoflow_action.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ geoflow_action <- R6Class("geoflow_action",
5757
#'@field packages list of packages required to perform the action
5858
packages = list(),
5959
#'@field pid_generator a name referencing the PID generator (if existing)
60-
pid_generator = NULL,
60+
pid_generator = "",
6161
#'@field pid_types types of PIDs to generate
6262
pid_types = list(),
6363
#'@field generic_uploader whether the action is a generic uploader or not.
@@ -102,7 +102,7 @@ geoflow_action <- R6Class("geoflow_action",
102102
scope = "global", types = list(), def = "",
103103
target = NA, target_dir = NA,
104104
packages = list(),
105-
pid_generator = NULL, pid_types = list(),
105+
pid_generator = "", pid_types = list(),
106106
generic_uploader = FALSE,
107107
fun = NULL, script = NULL, options = list(),
108108
available_options = list(),
@@ -151,7 +151,7 @@ geoflow_action <- R6Class("geoflow_action",
151151
self$target_dir = if(yml$target_dir=="NA") NA else yml$target_dir
152152
if(!is.na(self$target)) if(!self$target %in% c("entity","job")) stop("Action target should be either 'entity' or 'job'")
153153
self$packages = yml$packages
154-
self$pid_generator = if(!is.null(yml$pid_generator)) yml$pid_generator else FALSE
154+
self$pid_generator = if(!is.null(yml$pid_generator)) yml$pid_generator else ""
155155
self$pid_types = yml$pid_types
156156
self$generic_uploader = if(!is.null(yml$generic_uploader)) yml$generic_uploader else FALSE
157157
self$fun = source(system.file("actions", yml$fun, package = "geoflow"))$value

0 commit comments

Comments
 (0)