Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Update references in DESCRIPTION and readme files #10

Open
2 of 3 tasks
jeroen opened this issue Dec 5, 2019 · 0 comments
Open
2 of 3 tasks

Update references in DESCRIPTION and readme files #10

jeroen opened this issue Dec 5, 2019 · 0 comments

Comments

@jeroen
Copy link
Contributor

jeroen commented Dec 5, 2019

We should update references from ropensci.github.io/{pkg} to docs.ropensci.org/{pkg} in the readme and description files.

packages <- jsonlite::fromJSON("https://ropensci.github.io/roregistry/registry.json")$packages
packages <- subset(packages, grepl('https://github.com/ropensci/', url))
packages$hasdocs <- sapply(packages$name, function(pkg){
  url <- sprintf('https://docs.ropensci.org/%s/pkgdown.yml', pkg)
  message("checking: ", url)
  req <- curl::curl_fetch_memory(url)
  return(req$status == 200)
})
packages$hasurl <- sapply(packages$name, function(pkg){
  url <- sprintf('https://github.com/ropensci/%s/raw/master/DESCRIPTION', pkg)
  message("checking: ", url)
  req <- curl::curl_fetch_memory(url)
  grepl("docs.ropensci.org", rawToChar(req$content), fixed = TRUE)
})
subset(packages, hasdocs == T & hasurl == F)$name
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant