Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Oct 2, 2023
1 parent 0fc6cc2 commit b7edb9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dashboard.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ badge_url_data_generator_script <- system.file(
"raw-scripts", "workflow_badge_urls_db.R",
package = "easystatsdashboard"
)
callr::rscript(badge_url_data_generator_script)
source(badge_url_data_generator_script, local = knitr::knit_global())
workflow_status <- readRDS("badge_url_data.rds") %>% as_tibble()
workflow_status <- url_df %>% as_tibble()
extract_workflow_status <- function(url) {
response <- httr::GET(url)
Expand Down
2 changes: 1 addition & 1 deletion inst/raw-scripts/workflow_badge_urls_db.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ easystats_packages <- easystats:::.packages_on_cran()
url_list <- purrr::map(easystats_packages, ~ generate_workflow_status_badge_urls("easystats", .x))
url_df <- as.data.frame(purrr::set_names(url_list, easystats_packages))
url_df <- dplyr::mutate(url_df, workflow = main_workflow_names, .before = 1L)
saveRDS(url_df, "badge_url_data.rds")
# saveRDS(url_df, "badge_url_data.rds")

0 comments on commit b7edb9d

Please sign in to comment.