Skip to content

Commit

Permalink
Update docs (#21)
Browse files Browse the repository at this point in the history
* Update

* Update docs with pkgdev

---------

Co-authored-by: Diego H <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored May 27, 2024
1 parent 9ea3cae commit 95ec71d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
^Rplots\.pdf$
^vignettes/precompute\.Rmd\.orig$

^codecov\.yml$
6 changes: 3 additions & 3 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.3.3 (2024-02-29)",
"runtimePlatform": "R version 4.4.0 (2024-04-24 ucrt)",
"author": [
{
"@type": "Person",
Expand Down Expand Up @@ -104,7 +104,7 @@
"@type": "SoftwareApplication",
"identifier": "pkgdown",
"name": "pkgdown",
"version": ">= 2.0.0",
"version": ">= 2.0.8",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -146,7 +146,7 @@
"SystemRequirements": null
},
"isPartOf": "https://ropenspain.es/",
"fileSize": "219.323KB",
"fileSize": "221.3KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
2 changes: 1 addition & 1 deletion inst/schemaorg.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.3.3 (2024-02-29)",
"runtimePlatform": "R version 4.4.0 (2024-04-24 ucrt)",
"version": "0.2.0"
},
{
Expand Down
13 changes: 8 additions & 5 deletions vignettes/articles/descargas.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ avg_daily <- dwn %>%
group_by(package) %>%
summarise(avg = round(mean(count, na.rm = TRUE), 1))
avg_daily_all <- dwn %>%
summarise(avg = round(mean(count, na.rm = TRUE), 1))
# Une todo y da nombres
end <-
fechas %>%
Expand Down Expand Up @@ -263,7 +267,7 @@ reactable(
"media diaria" = colDef(
format = colFormat(separators = TRUE),
footer = function(values) {
p <- round(mean(values), 2)
p <- round(avg_daily_all$avg, 2)
prettyNum(p, big.mark = ".", decimal.mark = ",")
}
),
Expand Down Expand Up @@ -296,21 +300,20 @@ res <- lapply(mypaks, function(x) {
info <- jsonlite::read_json(tmp)
df_init <- as_tibble(
info[c("name", "date_publication", "occurred", "package_size", "version")]
info[c("name", "date_publication", "package_size", "version")]
)
df_prep <- df_init %>%
mutate(
date_in_cran = as.Date(date_publication),
date_in_ppm = as.Date(occurred),
psize = paste(round(package_size / (1024^2), 2), "Mb"),
mdown = as.integer(info$downloads)
) %>%
select(
package = name,
lvers = version,
date_in_cran, date_in_ppm, , psize, mdown
date_in_cran, psize, mdown
)
Expand All @@ -322,7 +325,7 @@ res_all <- bind_rows(res) %>%
names(res_all) <- c(
"paquete", "Última version", "en CRAN",
"en Posit", "Tamaño", "Descargas (último mes)"
"Tamaño", "Descargas (último mes)"
)
Expand Down
Binary file modified vignettes/plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion vignettes/precompute.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ vignette: >
This is an example of a precomputed vignette:


```r
``` r
library("ggplot2")

ggplot(faithfuld, aes(waiting, eruptions)) +
Expand Down

0 comments on commit 95ec71d

Please sign in to comment.