Skip to content

Commit

Permalink
#36 add staff_maintained field in registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Aug 26, 2020
1 parent f925b46 commit 6f9a70f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/registry.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ get_cran_archived <- function() {
w <- tibble::as_tibble(jsonlite::fromJSON(z$parse("UTF-8"))$package)
dplyr::select(w, Package, Type)
}
is_cran_archived <- function(x, y) x %in% y
is_staff <- is_cran_archived <- function(x, y) x %in% y

#' Title
#'
Expand Down Expand Up @@ -223,8 +223,8 @@ create_registry <- function(cm, outpat){
website_info$cran_archived <- purrr::map(website_info$name, is_cran_archived, ca$Package)

# staff maintained?
# staff <- readLines(system.file("scripts/staff.csv", package = "makeregistry"))
# website_info$staff_maintained <- zzz
staff <- readLines(system.file("scripts/staff.csv", package = "makeregistry"))
website_info$staff_maintained <- purrr::map(website_info$maintainer, is_staff, staff)

website_info <- dplyr::rowwise(website_info)
list(packages = website_info, date = format(Sys.time(), format = "%F %R %Z")) %>%
Expand Down

0 comments on commit 6f9a70f

Please sign in to comment.