scripts/download_sortablejs.R

sortable_version <- "1.15.0"
yaml_version <- "1.15.0"


writeLines(
  readLines(paste0("https://unpkg.com/sortablejs@", sortable_version), warn = FALSE),
  file.path("inst", "htmlwidgets", "lib", "sortable", "sortable.js")
)

sortable_yaml_file <- file.path("inst", "htmlwidgets", "sortable.yaml")
config <- yaml::read_yaml(sortable_yaml_file)
config$dependencies[[1]]$version <- yaml_version
yaml::write_yaml(config, sortable_yaml_file)
rstudio/sortable documentation built on April 5, 2024, 8:45 a.m.