Skip to content

Commit

Permalink
use svglite device
Browse files Browse the repository at this point in the history
closes #812
  • Loading branch information
IndrajeetPatil committed Jan 13, 2023
1 parent b77d9ed commit c27d40c
Show file tree
Hide file tree
Showing 13 changed files with 112 additions and 20 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,51 @@
Meta
doc
docs

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# =========================
# Operating System Files
# OSX
.AppleDouble
.DS_Store
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.fseventsd

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
.apdisk
Network Trash Folder
Temporary Items

# R Studio files
.RData
.Rhistory
Expand Down
31 changes: 29 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ references:
abstract: 'datawizard: Easy Data Wrangling and Statistical Transformations'
notes: Imports
url: https://easystats.github.io/datawizard/
repository: https://CRAN.R-project.org/package=datawizard
repository: https://easystats.r-universe.dev
authors:
- family-names: Patil
given-names: Indrajeet
Expand Down Expand Up @@ -288,7 +288,7 @@ references:
abstract: 'parameters: Processing of Model Parameters'
notes: Imports
url: https://easystats.github.io/parameters/
repository: https://CRAN.R-project.org/package=parameters
repository: https://easystats.r-universe.dev
authors:
- family-names: Lüdecke
given-names: Daniel
Expand Down Expand Up @@ -668,6 +668,33 @@ references:
given-names: Terry M
email: [email protected]
year: '2023'
- type: software
title: svglite
abstract: 'svglite: An ''SVG'' Graphics Device'
notes: Suggests
url: https://svglite.r-lib.org
repository: https://CRAN.R-project.org/package=svglite
authors:
- family-names: Wickham
given-names: Hadley
email: [email protected]
- family-names: Henry
given-names: Lionel
email: [email protected]
- family-names: Pedersen
given-names: Thomas Lin
email: [email protected]
orcid: https://orcid.org/0000-0002-5147-4711
- family-names: Luciani
given-names: T Jake
email: [email protected]
- family-names: Decorde
given-names: Matthieu
email: [email protected]
- family-names: Lise
given-names: Vaudor
email: [email protected]
year: '2023'
- type: software
title: testthat
abstract: 'testthat: Unit Testing for R'
Expand Down
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Imports:
statsExpressions (>= 1.3.6),
tidyr,
utils
Remptes:
easystats/performance
Suggests:
afex,
BayesFactor (>= 0.9.12-4.4),
Expand All @@ -65,6 +67,7 @@ Suggests:
psych,
rmarkdown,
survival,
svglite,
testthat (>= 3.1.6),
tibble,
vdiffr,
Expand Down
14 changes: 13 additions & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,18 @@
},
"sameAs": "https://CRAN.R-project.org/package=survival"
},
{
"@type": "SoftwareApplication",
"identifier": "svglite",
"name": "svglite",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=svglite"
},
{
"@type": "SoftwareApplication",
"identifier": "testthat",
Expand Down Expand Up @@ -510,7 +522,7 @@
},
"SystemRequirements": null
},
"fileSize": "9518.521KB",
"fileSize": "9519.442KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
15 changes: 12 additions & 3 deletions vignettes/web_only/faq.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ source("../setup.R")
#| label = "suggested_pkgs",
#| include = FALSE
if (!requireNamespace("PMCMRplus", quietly = TRUE)) {
knitr::opts_chunk$set(eval = FALSE)
pkgs <- c(
"PMCMRplus",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
library(PMCMRplus)
knitr::opts_chunk$set(eval = FALSE)
}
```

Expand Down
4 changes: 3 additions & 1 deletion vignettes/web_only/ggbetweenstats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ source("../setup.R")
pkgs <- c(
"gapminder",
"PMCMRplus"
"PMCMRplus",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
knitr::opts_chunk$set(eval = FALSE)
}
Expand Down
9 changes: 5 additions & 4 deletions vignettes/web_only/ggcoefstats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ pkgs <- c(
"BayesFactor",
"lme4",
"metaplus",
"survival"
"survival",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
knitr::opts_chunk$set(eval = FALSE)
}
Expand Down Expand Up @@ -315,7 +317,8 @@ combine_plots(
```{r}
#| label = "BFBayesFactor",
#| fig.width = 10,
#| fig.height = 10
#| fig.height = 10,
#| eval = FALSE
library(BayesFactor)
Expand Down Expand Up @@ -429,9 +432,7 @@ also use this function to carry out random-effects meta-analysis. The data frame
you enter **must** contain at the minimum the following three columns-

- `term`: a column with names/identifiers to annotate each study/effect

- `estimate`: a column with the observed effect sizes or outcomes

- `std.error`: a column the corresponding standard errors

### parametric
Expand Down
4 changes: 3 additions & 1 deletion vignettes/web_only/ggcorrmat.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ source("../setup.R")
#| include = FALSE
pkgs <- c(
"gapminder"
"gapminder",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
knitr::opts_chunk$set(eval = FALSE)
}
Expand Down
4 changes: 3 additions & 1 deletion vignettes/web_only/gghistostats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ source("../setup.R")
#| include = FALSE
pkgs <- c(
"psych"
"psych",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
knitr::opts_chunk$set(eval = FALSE)
}
Expand Down
6 changes: 5 additions & 1 deletion vignettes/web_only/ggscatterstats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ source("../setup.R")
```{r}
#| label = "suggested_pkgs",
#| include = FALSE
pkgs <- c("ggside")
pkgs <- c(
"ggside",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
knitr::opts_chunk$set(eval = FALSE)
}
Expand Down
2 changes: 2 additions & 0 deletions vignettes/web_only/ggwithinstats.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ source("../setup.R")
pkgs <- c(
"afex",
"PMCMRplus",
"svglite",
"WRS2"
)
Expand All @@ -33,6 +34,7 @@ can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
knitr::opts_chunk$set(eval = FALSE)
}
Expand Down
15 changes: 12 additions & 3 deletions vignettes/web_only/pairwise.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ source("../setup.R")
#| label = "suggested_pkgs",
#| include = FALSE
if (!requireNamespace("PMCMRplus", quietly = TRUE)) {
knitr::opts_chunk$set(eval = FALSE)
pkgs <- c(
"PMCMRplus",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
library(PMCMRplus)
knitr::opts_chunk$set(eval = FALSE)
}
```

Expand Down
15 changes: 12 additions & 3 deletions vignettes/web_only/principles.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,19 @@ source("../setup.R")
#| label = "suggested_pkgs",
#| include = FALSE
if (!requireNamespace("PMCMRplus", quietly = TRUE)) {
knitr::opts_chunk$set(eval = FALSE)
pkgs <- c(
"PMCMRplus",
"svglite"
)
successfully_loaded <- purrr::map_lgl(pkgs, requireNamespace, quietly = TRUE)
can_evaluate <- all(successfully_loaded)
if (can_evaluate) {
purrr::walk(pkgs, library, character.only = TRUE)
knitr::opts_chunk$set(eval = TRUE, dev = "svglite")
} else {
library(PMCMRplus)
knitr::opts_chunk$set(eval = FALSE)
}
```

Expand Down

0 comments on commit c27d40c

Please sign in to comment.