Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
richetyann authored Oct 23, 2023
1 parent f9d4408 commit e792d56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ available.Models <- function(refresh_repo = F) {
# not working behind some proxy: gh::gh("/orgs/Funz/repos",.token=NA, per_page=100)

gsub("plugin-","",
unlist(lapply(.github_repos,
function(r) {if (length(grep("plugin-",r$name))>0) r$name else NULL})),
unlist(lapply(.github_repos$name,
function(r) {if (length(grep("plugin-",r))>0) r else NULL})),
fixed=T)
}

Expand Down Expand Up @@ -275,8 +275,8 @@ available.Designs <- function(refresh_repo = F) {
# not working behind some proxy: gh::gh("/orgs/Funz/repos",.token=NA, per_page=100)

gsub("algorithm-","",
unlist(lapply(.github_repos,
function(r) {if (length(grep("algorithm-",r$name))>0) r$name else NULL})),
unlist(lapply(.github_repos$name,
function(r) {if (length(grep("algorithm-",r))>0) r else NULL})),
fixed=T)
}

Expand Down

0 comments on commit e792d56

Please sign in to comment.