Skip to content

Commit 0303109

Browse files
committed
Merge branch 'master' of https://github.com/tbates/umx
2 parents b93b3ee + f85c796 commit 0303109

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

R/misc_and_utility.R

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,17 @@ ggAddR <- function(model, effect = NA, xloc=8, yloc= 10) {
153153
#' remove.packages()
154154
#' }
155155
libs <- function(... , force.update = FALSE) {
156-
dot.items = list(...) # grab all the dot items
157-
dot.items = unlist(dot.items) # In case any dot items are lists
156+
# Capture the unevaluated arguments as a list of symbols
157+
lib_names <- rlang::ensyms(...)
158+
159+
# Convert symbols to character strings
160+
lib_names <- sapply(lib_names, as.character)
161+
162+
# Load the libraries
163+
# lapply(lib_names, library, character.only = TRUE)
164+
165+
# dot.items = list(...) # grab all the dot items
166+
# dot.items = unlist(dot.items) # In case any dot items are lists
158167

159168
for (pack in dot.items) {
160169
result = tryCatch({

0 commit comments

Comments
 (0)