chore: update local/ files
This commit is contained in:
parent
6a62efe646
commit
a78d489aac
1 changed files with 78 additions and 9 deletions
|
|
@ -7,16 +7,25 @@ con <- DBI::dbConnect(RPostgres::Postgres(),
|
|||
sslmode = "require"
|
||||
)
|
||||
|
||||
data <- dbGetQuery(con, "SELECT name,platform,arch FROM single_builds group by name,platform,arch HAVING COUNT(*) = SUM(CASE WHEN error_occurred = 'TRUE' AND removed = 'FALSE' THEN 1 ELSE 0 END);")
|
||||
cran_pkgs <- tools::CRAN_package_db() |>
|
||||
filter(`Date/Publication` <= "2024-12-02") |>
|
||||
pull(Package)
|
||||
|
||||
data <- dbGetQuery(con, "SELECT name,platform,arch,removed,error_occurred FROM single_builds;")
|
||||
|
||||
pkgs <- data |>
|
||||
filter(platform == "ubuntu-2204", arch == "arm64") |>
|
||||
filter(platform == "redhat-8", arch == "arm64") |>
|
||||
filter(removed == FALSE) |>
|
||||
filter(error_occurred == FALSE) |>
|
||||
distinct(name) |>
|
||||
pull(name)
|
||||
|
||||
pkgs = setdiff(cran_pkgs, pkgs)
|
||||
# Format, remove line breaks, and print as a single line
|
||||
formatted_pkgs <- gsub('"', "'", capture.output(dput(pkgs[1:300])))
|
||||
formatted_pkgs <- gsub('"', "'", capture.output(dput(as.character(na.omit(pkgs[1:300])))))
|
||||
formatted_pkgs_one_line <- paste(formatted_pkgs, collapse = " ")
|
||||
|
||||
cat(formatted_pkgs_one_line, "\n", sep = "")
|
||||
length(pkgs)
|
||||
|
||||
clipr::write_clip(formatted_pkgs_one_line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue