- Degrees of freedom are now (as a new default) reported without a comma as a big mark (reported by @Fritz-theCat, #559).
- Fixes incorrect running head in DOCX documents on pages > 2 (reported by @LisaSpitzer, #561).
- Maintenance update: Adjusted unit tests to avoid removal from CRAN
Initial CRAN release
- Some improvements to documentation, i.e. documentation of return values, removed examples for internal functions (as per CRAN request), use
\donttest{}
instead of\dontrun{}
. add_equals()
is now an exported function.
- Fixed bugs that occurred when using unicode characters in an appendix file (reported by @mschrein, #446 and @kalenkovich, #353).
- Level 4 and 5 headings are now displayed correctly (reported by @jamesrrae, #292).
- E-mail addresses are no longer required metadata (requested by @sbw78, #437).
- Special characters are now displayed correctly in appendices (reported by @mschrein, #446)
- Theorems are now numbered correctly (reported by @shirdekel, #447).
- The Lua-filter that parses the document metadata has been improved to be more robust (see #225).
- Markdown formatting now works for
shorttitle
andleftheader
. - It is now possible to specify bibliography, appendix, and CSL files (reported by @shirdekel, #482).
- Appendices can and should now be specified using the standard bookdown syntax (see #496 by @pablobernabeu and #484 by @shirdekel)
- Abstract is no longer indented (reported by @AdrienWitt, #510)
apa_print()
- Output now always contains a
$table
element (as suggested in #324 by @Kalif-Vaughn) - Column names of
$table
element are now standardized following the broom glossary) (e.g.,term
,estimate
,conf.int
,statistic
,df
,df.residual
,p.value
).- To maintain backwards compatibility, it is possible to access columns with aliases (for instance, it is possible to write
output$table$F
and obtainoutput$table$statistic
, see #364). - Table columns are labelled (e.g.,
"\\hat{\\eta}^2_G"
,"$F$", "$p$
, ...) for creating tables viaapa_table()
.
- To maintain backwards compatibility, it is possible to access columns with aliases (for instance, it is possible to write
- The arguments
ci
,conf_level
, andargs_confint
used for some methods are now depreceated and has been replaced byconf.int
, which is now used consistently across methods. - Returned tables now consistently have a column for degrees of freedom if applicable. If the degrees of freedom are constant, the column can be removed and degrees of freedom added to the variable label of the test statistic column using the new function
transmute_df_into_label()
. apa_print.aov()
and friends- Added a new argument
estimate
to ANOVA-methods, which accepts a character string ("ges"
,"pes"
, and"es"
; primarily for backward compatibility), a data frame (with columnsestimate
,conf.low
, andconf.high
), or a function to determine which measure of effect size is to be reported. If a function is supplied, it should take the ANOVA object as input and return a data frame with columnsestimate
,conf.low
, andconf.high
. Currently, output from the effectsize package is supported. By default, if effectsize is installed, generalized eta-squared (point estimate and confidence interval) will be calculated. Otherwise, only the point estimate will be calculated as before. - It is now ensured for all cases that names of reporting strings and ordering of terms in table is consistent (reported by @pthomasi)
- Argument
es
is now deprecated, but because it is a partial match withestimate
, old code usinges = "ges"
,es = "pes"
ores = "es"
will still work and yield the same results.
- Added a new argument
apa_print.list()
: Added progress bars for bootstrapped model comparisons.apa_print.emmGrid()
and friends- Extended support for additional link functions and output, e.g. (
emmeans::joint_tests()
, #200, PR #476) - Adjusted p values, confidence intervals, and families of tests are now marked as such (see
?apa_print.emmGrid
; #200, PR #476) - Fixed wrong estimate labels for interaction contrasts (reported by @shirdekel, #456).
- Extended support for additional link functions and output, e.g. (
apa_print.BFBayesFactor()
and friends were previously experimental and have now been implemented properly. In the process the argumentsscientific
,min
andmax
,auto_invert
,ratio_subscript
,escape
,evidential_boost
, andhdi
have been deprecated and theapa_print.BFBayesFactorList()
has been removed for now. The new methods support all BayesFactor analyses and interval null hypotheses. They also grant users more flexibility to specify what information to report.apa_print.lm()
: The argumentobserved_predictors
is now deprecated and has been replaced byobserved
to improve consistency of argument names across methods.
- Output now always contains a
apa_num()
andapa_p()
are now the preferred name for the function previously calledprintnum()
andprintp()
.variable_label()
,variable_labels()
, andlabel_variables()
now reside in CRAN package tinylabels, which is automatically loaded when papaja is loaded.cite_r()
now properly escapes semicolons (reported by @marklhc, #442)
apa_print.lme()
,apa_print.merMod()
,apa_print.mixed()
glue_apa_results()
andadd_glue_to_apa_results()
, see the new vignette on extendingapa_print()
(vignette("extending_apa_print", package = "papaja")
)apa_table.apa_results()
apa_interval()
,apa_confint()
, andapa_hdint()
apa_df()
transmute_df_into_label()
anddf_into_label()
- papaja now depends on
- tinylabels
- rmdfiltr (>= 0.1.3; see #427 by @jrennstich)
- New author metadata field
role
automatically adds contributor ship roles (e.g. CRedit) to the author note. #375 apa6_pdf()
- Now relies on a Lua-filter to process metadata, which should resolve many encoding related problems (e.g., reported by @arcaldwell49, @dcbrh, and @DominiqueMakowski among others; #350, #357, #360)
- Numbering of title is now disabled when
numbersections: true
apa6_docx()
- Minor improvements to typesetting (e.g., capitalize running head)
docx_fixes.lua
now tolerates missing figure captions (reported by @jvcasillas, #365)
revision_letter_pdf()
- Defaults to APA6 citation style (also see #369 by @jvcasillas)
- Adds word count filter
apa_print()
- Fixed method dispatch that sometimes failed (#361, #250)
apa_print.list()
- Each column of a model comparison table used to have names, these have now been
removed to enable unit testing across different R releases and improve consistency
across output objects from
apa_print()
.
- Each column of a model comparison table used to have names, these have now been
removed to enable unit testing across different R releases and improve consistency
across output objects from
printnum.integer()
- Now always returns a
character
- Now always returns a
printp()
- Fixed examples in documentation
variable_labels.data.frame()
- When trying to assign labels to columns that do not exist, as of now the function not only throws an error, but also returns the names of the missing columns.
wsci()
,within_subjects_conf_int()
- Experimental: Returned object now has class
c("papaja_wsci", "data.frame")
and returns an attributemeans
for post processing (see new functionsummary.papaja_wsci
).
- Experimental: Returned object now has class
apa_print.manova()
- Experimental: Added an
apa_print
method for MANOVA models from thestats
package.
- Experimental: Added an
summary.papaja_wsci()
- Experimental: Returns means and confidence limits calculated from the output
of
wsci()
(suggested by @jstevens5, #362)
- Experimental: Returns means and confidence limits calculated from the output
of
apa_print.papaja_wsci()
quote_from_tex()
remove_comments()
- papaja now depends on
R
>= 3.6pandoc
>= 2.0- rmdfiltr (>= 0.1.2) explicitly
- New
label_quotes.lua
filter to insert excerpts in revision letter; also seequote_from_tex()
- Lua filters for
pandoc
2.0 or later- New ampersand filter that's faster and robust to encoding issues (see #225 and #262)
- Word count filter is automatically applied (see R Markdown tab, #63)
- LaTeX
- Fixed bug that printed
NA
at the top of the appendix indoc
mode (reported by @paul-grassl, #295) - Fixed bug that caused problems with special characters in appendices (reported by @AlexChristensen, #283)
- In
jou
mode, tables now span both columns unless requested otherwise (reported by @saladspices, #52, also see #298 by @jstbcs) - Level 4 and 5 headings are now properly runin (reported by @jamesrrae, #292)
- Abstract heading is no longer numbered, when setting
number_sections: true
(reported by @tcgriffith, #332) - Fixed LaTeX warning
Command \@parboxrestore has changed.
(fix suggested by @CrumpLab, #336)
- Fixed bug that printed
- Word
- Overall improved template styles to reduce the need for manual fixes ()
apa_table()
- Returns an object of class
knit_asis
; it's no longer necessary to set the chunk optionresults = "asis"
for tables to be rendered (#280) - Column headings are repeated when long tables span multiple pages (suggested by @mischavk, #289)
- Fixed bug that cause issues with the rendering of tables in Word documents (reported by @mdanka, #301)
- In PDF files
&
in cells are automatically escaped
- Returns an object of class
apa_print()
- Output is now of class
apa_results
- Output is now of class
apa_print-htest()
- An estimate is now reported for 2x2 contingency tables
printnum.integer()
- Now prints a
zero_string
instead of""
whenx
is0
(suggested by @e-schott, #311) - Improved input validation fixes error when
NA
is passed (reported by @JanaJarecki, #317)
- Now prints a
printnum.numeric()
- New
add_equals
argument (suggested by @mvuorre, #313)
- New
label_variable()
/label_variables()
: Pipable methods to set variable labelssimple_codebook()
: Creates a simple code book from variable labelsapa_print.manova()
/apa_print.summary.manova()
: Support for standard manova output
- LaTeX template
- Complete rewrite of template as adaptation of
rmarkdown::pdf_document()
template to enable all options available in the standard template (e.g., A4 paper as requested by @wuschLOR, #193; #106) - Adds new
appendix
fields in YAML front matter (#168) - Enables markdown formatting in
abstract
,author_note
, andnote
fields (#232) - Renames
lineno
fields in YAML front matter tolinenumbers
- Fixes bug that caused
citation_package
specification to be ignored (reported by @doomlab, #188) - Fixes encoding bug in
endfloat
package (reported by @TobiasKoeln, #133) - Adds
longtable
asendfloat
environment (reported by @tormodb, #194) - Fixes option clash for
geometry
package (reported by @PenelopeLQ, #218)
- Complete rewrite of template as adaptation of
- DOCX reference file
- New style for tables
- Applies non-bold style to abstract and references title
- Skeleton
- Adds RNG seed for caching to first chunk
- Includes Nature abstract template
printnum.numeric()
- New option
use_math
to control whether to insert$
into the output so thatInf
or scientific notation is rendered correctly. Fixes bug that caused an error when printing confidence intervals for one-sided t-tests (#192)
- New option
apa_print.htest()
- Corrected incorrect sign in calculation of mean differences for t-tests (reported by @jstbcs)
apa_table()
- Is now an S3 generic function
- New method to merge multiple tables in a list using table spanners (#62)
- Adds new
font_size
option, which extendssmall
(#223) - Fixed bug that caused digits to be applied by row rather than by column (reported by Matti Heino, #173)
escape = TRUE
is now a visible (in documentation) default (reported by @baguadoramirez, #180)- Fixes error due to partial matching of
format
argument (reported by @mischavk, #223)
apa_factorial_plot()
- Fixed bug that caused
jit
parameter to be ignored (#177) - Adds new option
use
to improve and explicate handling of NAs (#190)
- Fixed bug that caused
render_appendix()
- Preparations for
pandoc
2.0 support (reported by @dhagmann, #204) - Reenables placement options for figures and tables in appendices (reported by @TobiasKoeln, #172)
- Enabled rendering appendices in subdirectories (reported by @jvcasillas, #168)
- Adds support for multiple bibliography files (reported by @jvcasillas, #168)
- No longer fails when bibliography file specified in the YAML front matter is not found (#189)
- Enforces UTF-8 encoding
- Preparations for
apa6_docx()
/apa6_word()
- Accepts custom DOCX reference file (suggested by Flo)
apa6_pdf()
- Utilizes
raw_attributes
extension inpandoc
> 2.0 (reported by @mischavk, #227)
- Utilizes
cite_r()
- Omits version numbers if package is not installed
wsci()
- Prevents incorrect calculation of confidence intervals in the presence of implicitly or explicitly missing data (#191)
apa6_docx()
Experimental:
apa_print.emmGrid()
apa_print.summary_emm()
revision_letter_pdf()
- Improved support for labelled variables in
printnum()
-methods - Renamed
labelled
class topapaja_labelled
to avoid problems due to conflicting implementations oflabelled
in the haven and Hmisc packages (see tidyverse/haven#329; first reported by @andreifoldes, #199) - Author affiliations can now also be provided without
id
- New experimental revision letter template
- Fixes various encoding problems on Windows (reported by @SongchaoChen, #139, @peter1328, #159, and @mdingemanse, #209)
- Utilizes native R filter to fix in-text citations in
pandoc
> 2.0 (#186)
- Reference section is now placed at the end explicitly and allows users to add contents after the reference section. This enables proper appendices in DOCX format.
- Fixed bug that resulted in unwanted "x"s on first page of Word documents (reported by @sjystu, #174)
- Adds proper pagebreaks before abstract and first page of the introduction in Word documents
- Fixes bug in the inclusion of appendices that lead to LaTeX errors when tables were included (reported by @ericpgreen, #179)
- Switched implementation of
variable_labels()
and related functions from S4 to S3 class. The transition was necessary because the S4 class was incompatible with at least one primitive function (#176). This change may unfortunately break backward compatibility with the previous release. apa_table()
- Now supports for column spanners that span only one column
render_appendix()
- Now supports for the application of
pandoc-citeproc
- Now supports for the application of
printnum.integer()
(suggested by @LorcanKenny, #178)
- papaja now depends on bookdown 0.6 to resolve compatibility issues with
pandoc
2.0 (reported by @ericpgreen, #170)
- Improved generation of the author note (#126)
- Author note skeleton text clarified to stress the need for indentation (reported and fixed by @alexholcombe, #132)
- Name of author does not include an ampersand in the correspondence line of the author note (reported by @jacob-long, #110)
- Author note is now omitted if empty in Word
- Formats throw error if name, postal address or e-mail address of corresponding author is missing.
- New rendering option
mask
removes author name, affiliations, and author note from the title page (suggested by @mcbeem, #114) - New rendering option
replace_ampersands
controls whetherampersand_filter()
is applied during rendering (suggested by Julia Haaf, Jeff Rouder, and Anne Scheel) - Rendering option
lang
removed because it is not compatible with currentpandoc
versions (reimplementation needed)
apa_barplot()
- Now prints
ylab
on every plot as doapa_lineplot()
andapa_beeplot()
(#124)
- Now prints
theme_apa()
- Added support for right y-axis.
render_appendix()
- The function now removes the placement options of figures and tables in appendix (reported by @TobiasKoeln, #113)
inline_hook()
- Added support for
difftime
objects
- Added support for
r_refs()
- Now enforces UTF-8 encoding (reported by @JimGrange, #123)
apa_print.anova()
and related- Now correctly italicize MSE
- Corrected bug in the calculation of eta^2 and denote as estimate using
^
.
within_subjects_conf_int()
- Calculates confidence intervals in presence of
NA
s (reported by @TobiasKoeln, #137)
- Calculates confidence intervals in presence of
apa_print()
- Returned tables are of class
apa_results_table
, column names are easy to address, and each column is labelled for pretty printing.
- Returned tables are of class
apa_table()
- Takes into account additional options passed to
format.args
parameter (reported by @lnalborczyk, #131)
- Takes into account additional options passed to
apa_print.htest()
- Supports
oneway.test()
objects.
- Supports
apa6_word()
- Enforces UTF-8 encoding while augmenting the YAML front matter (reported by @lindsayhinzman, #156)
apa_factorial_plot()
apa_factorial_plot.afex()
apa_print.glm()
apa_print.summary.glm()
print.apa_results_table()
variable_label()
Experimental:
apa_print.BFBayesFactor()
apa_print.BFBayesFactorTop()
apa_print.BFBayesFactorList()
- The ampersand filter is applied with
--vanilla
to avoid problems with customized.Rprofile
s (reported by @awellis, #96) - Fixed bug in
ampersand_filter()
regex, which caused some citations to be missed depending on preceding citations (reported by @awellis, #96, and @m-Py, #100) - On windows the Batch file to apply the ampersand filter is now created at the current location and deleted on exit to avoid permission problems (reported by @stahl-c)
- Changed default graphics devices to
pdf
andpng
to improve compatibility and rendering speed;postscript
andtiff
are no longer used be default - Author note is omitted if no corresponding author is defined and no author note text is provided (reported by @jacob-long, #108; fixed by @jacob-long, #109)
apa_print.aov()
- Fixed bug that caused incorrect calculation of eta squared
- MSE is now typeset in regular font rather than italic as per APA guidelines
apa_table()
- Added proper support for automated bookdown cross-referencing of tables: Chunk label is now automatically added as
\label{}
tag. - Now supports
na_string
anddigits
options
- Added proper support for automated bookdown cross-referencing of tables: Chunk label is now automatically added as
theme_apa()
- Now uses
ggplot::margin()
to set margins becauseggplot::unit()
is now deprecated. - Changed base size default from 14 to 12 and adjusted some margin and spacing defaults
- Now uses
r_refs()
- Fixed bug that caused some existing references to be added to the bib-file (#102)
cite_r()
- Fixed incorrect handling of
survival-book
reference
- Fixed incorrect handling of
apa_print.lsmobj()
apa_print.summary.ref.grid()
apa_print.glht()
apa_print.summary.glht()
- New global option
papaja.na_string
with default value"NA"
used byapa_table()
andprintnum()
- Updated example file and README
- The template now automatically invokes an R-based pandoc filter that replaces
&
withand
in in-text citations to fully adhere to APA citation guidelines; (see #53) - Initial chunk in template now is set to use chunk option
include = FALSE
.
apa_table.latex()
- If
landscape = TRUE
tables are now always inlongtable
environments to improve interplay with the LaTeX packageendfloat
and correctly honoring thefigsintext
option in the YAML header (reported by @m-Py, #90) - Added clarification that the chunk option
results = "asis"
is required whenapa_table()
is called (requested by RMHogervorst, #93)
- If
apa_print.lm()
- Calling
lm()
on adata.frame
columns by using$
resulted in regression term names that brokeapa_table()
(reported by @m-Py, #87)
- Calling
render_appendix()
- Now builds on
knitr::knit_child()
to fix a bug causing figures not to render in the appendix;render_appendix()
now has to be called within an R Markdown document. (reported by @fdabl, #70)
- Now builds on
apa_*plot()
- Expressions can now be used as legend titles (see #94)
apa6_pdf
andapa6_word
now adaptpdf_document2()
andword_document2()
from the bookdown package. This enables the use of bookdown cross-referencing syntax including automatically generated table and figure labels as detailed here (see #2).- LaTeX
- If
numbersections: true
numbering now starts at the body of the text. The abstract is no longer a numbered heading (reported by @lnalborczyk, #85) - New option
footnotelist
to create list of footnotes at the end of the document (see #74)
- If
- Word
- Fixed bug that the wordcount set in the YAML header was not reported on the title page of Word documents (reported by @TobiasKoeln)
apa_table.latex()
- Fixed bug causing longtables and and landscape tables to appear in text rather than at the end of the document when
figsintext: false
(reported by @m-Py, #64). - Fixed bug causing LaTeX to break when table contains
%
. All unescaped%
are now automatically escaped even ifescape = FALSE
(reported by @m-Py, #66).
- Fixed bug causing longtables and and landscape tables to appear in text rather than at the end of the document when
- Corrected various typos (reported by JooYoung Seo)
- Fixed bug in inline hook that omitted single numbers (reported by @hcp4715, #79)
- Chunk option default changed to
results = "markup"
(see #77)
apa_barplot()
can calculateylim
when measure of dispersion cannot be calculated (#76)apa_beeplot()
brightens data points instead of using transparencyapa_print()
- Renamed returned list elements to
statistic
,estimate
,full_result
, andtable
(#67) - All methods now return lists of the same structure (
table
may beNULL
)
- Renamed returned list elements to
apa_print.lm()
has new optionobserved_predictors
to calculate proper R^2 confidence intervals
- MBESS package is now suggested and not imported
- Fixed a bug causing a LaTeX error in
jou
mode (reported by @saladspices, #48) - Default
lang
is nowenglish
; fixed a pandoc-citeproc bug (reported by @mvuorre and @sebastiansauer, #56 and #57; fixed by @mvuorre, #58) - Removed
author
fielddepartment
, information can be supplied as part of theaddress
field - New option
author_note
;note
is used to add additional information to the title page - Changed heading "Sample" to "Participants"
- Fixed bug that supplied CSL file was ignored
- Proper author name concatination on title page (reported by Ulf Mertens)
- LaTeX
- New options
figurelist
andtablelist
to create lists of figure or table captions at the end of the document - Added
upgreek
package - Fixed bug causing
figsintext
to have no effect (reported by @mattsigal, #61) - Added page break before reference section (reported by @mattsigal, #60)
- New options
- Word
- Fixed bug causing a deranged title page (reported by @mvuorre, #59)
- Figure captions are now preceded by "Figure."
apa_print()
- Improved type setting of predictors in tables
- New supports
car::LeveneTest()
output - Dropped redundant df-column in
apa_print.lm()
table - Fixed bug causing the omission of R^2 confidence intervalls in
apa_print.lm()
when F-values were small - Fixed bug in
apa_print.list()
causing an error with only two models - Refactored
apa_print()
-family for ANOVA objects- Only df corrected for nonsphericity are reported with two decimals
- Added indication of sphericity correction to
apa_print.Anova.mlm()
table print_anova()
rounds effect size estimates to three decimals- Can now calculate eta^2 effect sizes
- New option
intercept
determines if intercept tests are included in the output - New option
mse
to report mean squared error terms (thanks to @TomHardwicke for reporting early bugs, #49)
apa_table()
- Dropped redundant
row_names
option - New option
stub_indents
adds title sections to indented rows - Renamed option
added_colnames
toadded_stub_head
apa_table.latex()
- New option
col_spanners
to add column spanners - New option
small
to decrease font size for large tables - Improvements to long and landscape tables
- New option
- Dropped redundant
apa_barplot()
- Now works with white space in factor names
- Improvements to automatic setting of
ylim
- Fixed bug that led to the incorrect drawing of user-specified colors
- Only one legend is drawn for multiple facets
- New option
args_arrows
to customize error bars - Invisibly returns means and measures of dispersion
cite_r()
- New options
pkgs
andwithhold
to black- or whitelist packages (#50) - Output retains structure if footnote = TURE but no bib-file is found
- New options
r_refs()
- Now handles packages with mulitple references (reported by @mattsigal, #65)
conf_int()
- Fixed bug that led to negative values
apa_print.afex_aov()
(#47)apa_print.list()
(#27)wsci()
apa_lineplot()
apa_beeplot()
(thanks to @TobiasKoeln for reporting early bugs, #72)theme_apa()
render_appendix()
fetch_zotero_refs()
in_paren()
fetch_web_refs()
evolved into a clone ofdownloder::download()
apa_prepare_doc()
is no longer needed
- papaja sets global options
papaja.mse
andpapaja.sphericity_correction
among others - Updated example manuscript
- Added vignette
- Added
wordcount
parameter to YAML header - Changed YAML header structure to support proper author and affiliation information (requires updates of existing Rmd-files)
- LaTeX: Changed SVG device to PS
- Removed author field 'department' from the YAML header
- Added LaTeX fix for tightlist-bug in pandoc 1.14
- Fixed extra comma in automatically generated corresponding author line when no note is provided
apa_print()
- Added
table
output-element toapa_print.lm()
containing complete regression table - Refactored and tested
apa_print()
-family for ANOVA objects - Added
table
output-element toapa_print()
-family for ANOVA objects containing complete ANOVA table - First experimental implementation of F-test model comparisons (
car::leveneTest
objects) - Estimates in
apa_print.htest()
andapa_print.lm()
can be formatted by passing options toprintnum()
- Added
apa_table()
- Added
midrules
option forapa_table.latex()
and cleaned up LaTeX output - Fixed vertical space between table and table notes for
apa_table.latex()
- Bug fixes
- Added
r_refs()
- Now attempts to create references for packages used in cached chunks
- Creates proper references based on citation file if available instead of generating default references from description file
apa_prepare_doc()
- Fixed bug when
lang
was not set in YAML header
- Fixed bug when
apa_barplot()
- Fixed ignorance of user specified color for one factorial plots
- Fixed default ylim choice to consider the lower bound of confidence intervals
apa_table()
- Removed redundant
row_name
parameter - Fixed escaped multicolumn-headings in
apa_table.latex()
- Removed redundant
apa_print.anova.mlm()
apa_barplot()
cite_r()
fetch_web_refs()
- Set up proper package structure for automatic unit testing
- Created news file
- Fixed some typos in the example document
- Initial release on GitHub