Questions tagged [papaja]

The papaja tag should be used for questions concerning the usage of the papaja R package. The package provides an R Markdown template that can be used with (or without) RStudio to produce documents which conform to the American Psychological Association (APA) manuscript guidelines.

papaja is an R package in the making including a R Markdown template that can be used with (or without) RStudio to produce documents, which conform to the American Psychological Association (APA) manuscript guidelines (6th Edition). The package uses the LaTeX document class apa6 and a .docx-reference file, so you can create PDF documents, or Word documents if you have to. Moreover, papaja supplies R-functions that facilitate reporting results of your analyses in accordance with APA guidelines.

84 questions
16
votes
5 answers

pandoc-citeproc error 83 with Rmarkdown file

I have the following document, that I am trying to compile with Rstudio: --- title: shorttitle: author: bibliography: - library.bib output: papaja::apa6_pdf --- ```{r message = FALSE, warning = FALSE} library("papaja") apa_prepare_doc() #…
Ladislas Nalborczyk
  • 725
  • 2
  • 5
  • 20
5
votes
2 answers

Deleting redundant `\author` and `\affiliation` fields in R papaja document

I'm creating an R Markdown document using the 'papaja' package and the 'apa7' LaTeX template. When used together, the latter package and template currently produce a conflict due to duplicated \author and \affiliation fields in the tex file.…
Pablo Bernabeu
  • 402
  • 4
  • 23
4
votes
1 answer

LaTeX Error: Environment ThreePartTable undefined

I am trying to create a table using apa_table(), Papaja, and RMarkdown in RStudio. Whenever I include longtable in the apa_table function, I get the error: ! LaTeX Error: Environment ThreePartTable undefined. Strangely, the error log that's produced…
Tim Bainbridge
  • 177
  • 2
  • 9
4
votes
1 answer

Changing citation style to number-letter in papaja Rmarkdown package

I'm writing a scientific manuscript in RMarkdown using the papaja package, which enables me to report my statistics beautifully. However, the journal now requires me to submit a Word document with number-letter referencing. Is it possible to change…
3
votes
1 answer

Option to cut values below a threshold in papaja::apa_table

I can't figure out how to selectively print values in a table above or below some value. What I'm looking for is known as "cut" in Revelle's psych package. MWE below. library("psych") library("psychTools") derp <- fa(ability, nfactors=3) print(derp,…
b_p
  • 35
  • 5
3
votes
1 answer

r papaja::printnum(0L, numerals =F) returns empty value, not "zero"

I am trying to use papaja::printnum to print "zero". In the following code, printnum for as.integer(1) works, but printnum for as.integer(0) does not. Is this intended behaviour? library(papaja) printnum(as.integer(1), numerals=F) #> [1]…
Esther
  • 441
  • 2
  • 15
3
votes
1 answer

Text (not syntax) highlighting in Rmarkdown/Papaja

I'm compiling a report using Papaja and Rmarkdown, and I want to highlight various text throughout. Doing so with latex or pure Rmarkdown is easy, but I'm receiving an "undefined control sequence" error when I compile the report to PDF using…
Topher
  • 65
  • 8
3
votes
1 answer

Getting rid of figure captions under figures

This is for Papaja. How do I get rid of figure captions at the bottom of the figure. My figure caption is quite long and I am going to a figure list. Now, I get both, and the figure caption runs out on the bottom of the page. Thanks, Jeff
Jeff
  • 31
  • 1
3
votes
1 answer

Controlling space between lines or rows in tables using papaja with r markdown for pdf

I'm working on APA tables with the package papaja and r markdown together with Latex and I want to adjust the vertical space between rows in a relatively big table so it will fit on one page. Additionally, if needed, i also want to reduce font size…
Benjamin Telkamp
  • 1,451
  • 2
  • 17
  • 31
2
votes
0 answers

Papaja and quarto

Has anyone looked into using papaja with quarto, yet? I've tried rendering a qmd file with format: papaja::apa6_pdf: latex_engine: lualatex keep_tex: true in the header, but in seems that the render fails because of invalid YAML.
eyer
  • 37
  • 1
2
votes
1 answer

Text justification with ragged2e inside a papaja-generated Rmarkdown

I have been trying to use "ragged2e" for text justification in a papaja-generated document with the method that has been proposed here: https://stackoverflow.com/a/50042106 However, when I try to knit this: --- title : "My…
raphael_ldl
  • 113
  • 8
2
votes
2 answers

Displaying scientific notation [papaja]

I have a large number in my code chunk: a <- 1.234 * 10^36 Which I then print inline in my document: What does this look like when knitted: `r a` Knitting this in a standard .Rmd produces the expected 1.234 x 10^36 But knitting in the papaja…
2
votes
1 answer

Adding preamble.tex and/or modifying css

Thanks for making papaja. It's really terrific! I just submitted my first journal article using it and ran into problems. The layout staff don't know what to do with the code chunks and listings that are fine in single-column, full page format, but…
user20412
  • 193
  • 7
2
votes
2 answers

Cross reference equation in RMarkdown knitting to docx (papaja)

I am trying to get equation numbers when knitting my .Rmd to .docx but I haven't found a way to get this or the labels to cross reference them to work. I tried this: $$ P(L|C_L, C_R) = \frac {10^{\sum_{n=1}^ {4} (w_{c_{L,i}} - w_{c_{R,i}})}}…
Ramiro Reyes
  • 535
  • 2
  • 7
2
votes
2 answers

Cannot knit papaja file - Deprecated pandoc-citeproc filter

I cannot knit any papaja files. Whenever I try I get this error: [WARNING] Deprecated: pandoc-citeproc filter. Use --citeproc instead. pandoc-citeproc: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with…
PCS
  • 21
  • 2
1
2 3 4 5 6