Skip to content

Commit

Permalink
switch from corpus to jsonlite (corpus is no longer on CRAN)
Browse files Browse the repository at this point in the history
  • Loading branch information
aghaynes committed May 22, 2023
1 parent 0456e7e commit 6e83786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/renderReadme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: Rscript -e 'install.packages(c("rmarkdown", "corpus", "curl", "glue"))'
run: Rscript -e 'install.packages(c("rmarkdown", "jsonlite", "curl", "glue"))'
- name: Render my document to all types
run: Rscript -e 'rmarkdown::render("README.Rmd", output_format = "github_document")'
- name: Commit results
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CTU Berns universe is [here](https://ctu-bern.r-universe.dev).
## Packages in the universe

```{r , echo = FALSE}
pkgs <- corpus::read_ndjson("https://ctu-bern.r-universe.dev/stats/descriptions/")
pkgs <- jsonlite::stream_in(url("https://ctu-bern.r-universe.dev/stats/descriptions/"))
pkgs <- pkgs[order(pkgs$Package), ]
pkgs$Description <- gsub("\n", " ", pkgs$Description, fixed = TRUE)
Expand Down

0 comments on commit 6e83786

Please sign in to comment.