Skip to content

Commit 2aadd12

Browse files
committed
cran attempt 2
1 parent da76a97 commit 2aadd12

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1391
-1157
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ math-rendered-by-lua-filter.html
2424
^vignettes/_freeze$
2525
README.qmd
2626
^CODE_OF_CONDUCT\.md$
27+
^CRAN-SUBMISSION$

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 0.1.0
2+
Date: 2025-08-20 01:18:48 UTC
3+
SHA: da76a978e9a823001eadebb1cbae68dd8eb6635e

DESCRIPTION

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
Package: apa7
2-
Title: Write Documents in APA Style 7th Edition
2+
Title: Facilitate Writing Documents in American Psychological Association
3+
Style, Seventh Edition
34
Version: 0.1.0
45
Authors@R:
56
person("W. Joel", "Schneider", , "w.joel.schneider@gmail.com", role = c("aut", "cre"),
67
comment = c(ORCID = "0000-0002-8393-5316"))
7-
Description: Functions to create APA Style 7th Edition documents.
8+
Description: Create American Psychological Association Style, Seventh
9+
Edition documents. Format numbers and text consistent with APA style.
10+
Create tables that comply with APA style by extending flextable
11+
functions.
812
License: CC0
913
URL: https://github.com/wjschne/apa7, https://wjschne.github.io/apa7/
1014
BugReports: https://github.com/wjschne/apa7/issues
@@ -23,22 +27,32 @@ Imports:
2327
rlang,
2428
S7,
2529
scales,
30+
shiny,
2631
signs,
2732
stringr,
2833
tibble,
2934
tidyr
3035
Suggests:
36+
bsicons,
37+
bslib,
3138
cli,
39+
conflicted,
3240
forcats,
3341
ggplot2,
3442
knitr,
3543
quarto,
3644
R.utils,
45+
rclipboard,
46+
readr,
3747
rmarkdown,
48+
shinyWidgets,
3849
snakecase,
3950
spelling,
4051
testthat (>= 3.0.0),
41-
tidyselect
52+
tidyselect,
53+
tippy,
54+
toastui,
55+
yaml
4256
VignetteBuilder:
4357
knitr,
4458
quarto

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export(column_formats)
2626
export(column_spanner_label)
2727
export(hanging_indent)
2828
export(header_md)
29+
export(install_apaquarto)
2930
export(is_numeric_like)
3031
export(italic_md)
32+
export(make_apaquarto)
3133
export(num_pad)
3234
export(p2stars)
3335
export(pivot_wider_name_first)

R/apaquarto.R

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#' Run shiny app to make a document in APA style via Quarto
2+
#'
3+
#' A wrapper for `shiny::runGitHub`
4+
#' @param launch.browser run shiny app in default browser
5+
#' @returns Runs a shiny app that creates apaquarto documents
6+
#' @export
7+
#'
8+
#' @examples
9+
#' \dontrun{
10+
#' make_apaquarto()
11+
#' }
12+
make_apaquarto <- function(launch.browser = TRUE) {
13+
shiny::runGitHub(repo = "apa7maker",
14+
username = "wjschne",
15+
launch.browser = launch.browser)
16+
}
17+
18+
19+
20+
#' Installs the apaquarto extension.
21+
#'
22+
#' A wrapper for `quarto::quarto_add_extension`
23+
#' @param no_prompt Do not prompt to confirm approval to download external extension.
24+
#' @param quiet Suppress warning and other messages
25+
#' @param quarto_args Character vector of other quarto CLI arguments to append to the Quarto command executed by this function.
26+
#'
27+
#' @returns installs the apaquarto Quarto extension
28+
#' @export
29+
#'
30+
#' @examples
31+
#' \dontrun{
32+
#' install_apaquarto()
33+
#' }
34+
install_apaquarto <- function(no_prompt = FALSE,
35+
quiet = FALSE,
36+
quarto_args = NULL) {
37+
quarto::quarto_add_extension(
38+
extension = "wjschne/apaquarto",
39+
no_prompt = no_prompt,
40+
quiet = quiet,
41+
quarto_args = quarto_args
42+
)
43+
}
44+

_pkgdown.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ reference:
4747
- add_list_column
4848
- add_star_column
4949
- separate_star_column
50+
- title: Quarto
51+
desc: Functions for creating apaquarto documents
52+
contents:
53+
- install_apaquarto
54+
- make_apaquarto
5055
- title: Misc
5156
desc: Other Functions
5257
contents:

cran-comments.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
0 errors | 0 warnings | 1 note
44

55
* This is a new release.
6+
* Fixed description (gave greater detail about what the package does).

inst/WORDLIST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
APA
22
Boeckel
3+
CLI
34
Caron
45
Cran
56
Deckered

man/apa7-package.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/install_apaquarto.Rd

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)