Skip to content

Commit

Permalink
#215 names for returned artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiecek committed Feb 8, 2016
1 parent f39ed19 commit f60cb84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/asearch.R
Expand Up @@ -113,12 +113,9 @@ asearch <- function( patterns, repo = NULL){
# use default repo
oblist <- multiSearchInLocalRepo(patterns = patterns,
intersect = TRUE)
# oblist <- multiSearchInRepo(patterns = patterns)
# if (length(oblist) > 0) {
# res <- lapply(oblist, aread)
# }
if (length(oblist) > 0) {
res <- lapply(oblist, loadFromLocalRepo, value = TRUE)
names(res) <- oblist
}
} else {
# at least 3 elements
Expand All @@ -130,6 +127,7 @@ asearch <- function( patterns, repo = NULL){
patterns = patterns)
if (length(oblist)>0) {
res <- lapply(paste0(repo, "/", oblist), aread)
names(res) <- oblist
}
}
res
Expand Down

0 comments on commit f60cb84

Please sign in to comment.