Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Only include udf function once
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 1, 2023
1 parent 1fa077f commit f5cbea4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/rudf.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ rxRmFunParse <- function(name) {
}
.nargs <- length(.formals)
.udfEnv$fun[[fun]] <- list(.fun, environment(.fun))
.udfEnv$udf <- c(.udfEnv$udf, setNames(.nargs, fun))
.w <- which(names(.udfEnv$udf) == fun)
if (length(.w) == 0L) {
.udfEnv$udf <- c(.udfEnv$udf, setNames(.nargs, fun))
}
return(list(nargs=.nargs,
fun))
}
Expand Down

0 comments on commit f5cbea4

Please sign in to comment.