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
1
vote
1 answer

First name and last name inverted in bibliography r markdown

I got a problem using R-markdown to write my master's work. I am using the papaja package. Everything's fine except that when I knit my document to produce a pdf the first name of the author in my bibliography are BEFORE the last name. Here is a…
GyrLu
  • 33
  • 4
0
votes
1 answer

Title and affiliations FLUSH LEFT in pdf of manuscript written with papaja

I need to submit a manuscript originally written with papaja with the title and affiliations flush left (and ideally the title in bold). I've searched all over and can't seem to find a solution - I think the latex options are overwritten by papaja.…
Emilio M. Bruna
  • 297
  • 1
  • 3
  • 14
0
votes
2 answers

Suppress the Running Head when using papaja?

I am trying to supress the running head on a pdf render of a manuscript written with papaja. Commenting out or deleting the shorttitle from the YAML (see below) both insert "Running head: SHORT TITLE" in the pdf header. Is there a way to completely…
Emilio M. Bruna
  • 297
  • 1
  • 3
  • 14
0
votes
0 answers

Can knitr save figures with file names corresponding figure counter?

I'm using bookdown/papaja and knitr in generating a pdf file with figures. By default it seams the knitr names the figures according to their code chunk label (e.g.: fig_cars-plot), but is there a way to have it name them/save them according to…
sinandrei
  • 179
  • 2
  • 10
0
votes
1 answer

Hiding NA's when printing a dataframe in apa_table (papaja)

I am trying to print a table with apa_table (papaja) using options(knitr.kable.NA = ""). Whatever I try the NAs are still printed. I tried with kable which worked just fine. But I need to use apa_Table. Is there a workaround or any idea why it…
daves
  • 1
0
votes
3 answers

Highlighting some references in RMarkdown documents?

Is it possible to emphasise (e.g., put in bold) some references that contain a particular string (e.g., the name of a particular author) in a papaja .Rmd document (where the refs are taken from a bib file and using the apa7.csl file)?
Ladislas Nalborczyk
  • 725
  • 2
  • 5
  • 20
0
votes
1 answer

Papaja/RMarkdown: Loading a file from inside a code chunk

I am trying to load a file from inside a code chunk in a papaja document This is my header --- title : "The title" shorttitle : "Title" author: - name : "First Author" affiliation : "1" corresponding : yes …
raphael_ldl
  • 113
  • 8
0
votes
1 answer

`gtsummary` and `papaja` integration for `kable` tables

I am trying to use a gtsummary table within a papaja::apa6_pdf document to include a formatted (with caption) kable table. However, it's not rendering as expected. In contrast, the gtsummary kable table renders well in a normal…
maia-sh
  • 537
  • 4
  • 14
0
votes
1 answer

Papaja: Vertical Distance Between Paragraphs

Compiling the following RMarkdown document in which I use the doc mode of the apa6 class. --- linenumbers : no documentclass : "apa6" classoption : "doc" output : papaja::apa6_pdf --- # Methods We report how we…
Julian Karch
  • 444
  • 4
  • 20
0
votes
1 answer

Papaja does not use "et al." when citing a reference more than once in apa format

When I knit the R-Markdown file for the APA-styled document, I saw that "et al" is not used in the output pdf file, instead the author names were not suppressed but written each time. I found the answer to this problem for pdf outputs…
hddtas
  • 3
  • 1
0
votes
1 answer

Hold apa_table position in Rmarkdown/papaja

I do have another Rmarkdown/papaja package question from my side and would be very happy if anyone was willing to help :) As many people on the internet I have trouble controlling the position of my tables. I have the floatsintext: yes option…
Hanna
  • 29
  • 2
0
votes
0 answers

Table of contents Rmarkdown/papaja

I have a question concerning Rmarkdown (papaja template) that I have not been able to solve so far (despite googling all day long...) (Part of) yy YAML header is as follows: --- title : "MY TITLE" authornote: | "My author note" abstract: | "My…
Hanna
  • 29
  • 2
0
votes
1 answer

papaja: Changing font sizes and faces for code listings and R output

Based on the answer to this question, I was able to get 2-column papaja with listings wrapping (rather than overflowing column width). But the listings package turns off various features that help code listings and R output stand out relative to the…
user20412
  • 193
  • 7
0
votes
1 answer

Can't change wrong figure/table caption format in papaja document

I'm trying to write a document according to the apa guide, so I wrote it in RStudio and used the papaja package template. But the captions in the figures and tables have the wrong format (see below). The caption text should be in italics and the…
0
votes
1 answer

How to install R packages when github is blocked using papaja as an example

I thought I would post this as an answer to anyone having problems installing papaja (or other packages) when behind a firewall that doesn't allow github The problem For reasons I dont fully understand, the only way I am able to use github R…
Sebastian Zeki
  • 6,690
  • 11
  • 60
  • 125