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
2 answers

R markdown prints out figure label

When knitting my R Markdown document (papaja::apa6_pdf), my figure caption appears in the figure legend. This is the code to generate my figure: {r RT_pilot, echo=FALSE, fig.cap="\\label{fig:RT_pilot}Median search…
TanZor
  • 227
  • 1
  • 6
1
vote
0 answers

numbering sections from custom sections (not the default title)

I would like to number sections in the document with papaja and noticed the solution in #85 and #332 (https://github.com/crsh/papaja/issues/). However, when I use "numbersections: true" or "\setcounter{secnumdepth}{5}", the numbering starts from the…
1
vote
1 answer

RMarkdown knitting error papaja apa6 - rmdfiltr add wordcount filter

I get the following error when knitting papaja::apa6_pdf docs. I'm running R version 3.6.2 with macOS Mojave (10.14.6) on my MacBook Pro. Any ideas? Error in rmdfiltr::add_wordcount_filter(args, report = "warn") : unused argument (report =…
vmousley
  • 13
  • 2
1
vote
1 answer

Rmarkdown can't find a .png image while trying to compile on pdf using papaja

I am trying to make a document using papaja format in r-markdown. The problem is R can't compile the pdf because it cannot find an image I am trying to import using `knitr::include_graphics(). This is my Yaml header: --- title :…
1
vote
1 answer

papaja and text references knitting to word

I am trying to create text references for tables and figures. However, I do get it to work following the examples in the documentation. There is neither a text reference nor a table caption using either approach. Here is some example script. #…
Jens
  • 35
  • 5
1
vote
2 answers

How to write an Equation in R (papaja)?

I'm trying to write this equation using the papaja package: \begin{equation} \tag{1} $$LogVolume_(dcr)=$\alpha$ +$\beta$DMonday+$\gamma$DTuesday+...+$\delta$DSaturday+ $\epsilon$ $$ \end{equation} It is a basic regression model equation but I'm…
alienalex
  • 35
  • 6
1
vote
1 answer

Knitting pdf document with papaja in R

How do I get rid of the row Numbers in the PDF the Knitr function creates when I use papaja package in R? Screenshot of PDF wit row numbers
HvG
  • 43
  • 8
1
vote
1 answer

papaja: controlling text spacing when placing floats H

I am using the great papaja package to create a manuscript. I want to place figures in the text (floatsintext: yes) AND I want them to appear exactly where specified. To achieve the latter, I followed this advice to add the following to the…
Eric Green
  • 7,385
  • 11
  • 56
  • 102
1
vote
1 answer

Plotting Error with apa_linplot in papaja: Error in min(0, y.values[, "lower_limit"],

Hey folks I have some issues using papaja plot functions. I have this kind of data. frame in long format # A tibble: 6 x 4 # Groups: MemSetSize, UpdatingSteps [6] Subject MemSetSize UpdatingSteps meanACC
Jan
  • 21
  • 1
  • 2
1
vote
1 answer

r object not printed in the text

Some R objects that are printed in Rmarkdown without a problem but is not printed using papaja template. It does not generate any any error message. For example, let's say I wrote a markdown file as below: ```{r setup, include =…
ffew
  • 15
  • 4
1
vote
2 answers

apa_print() equations in papaja versus ggplot2 (title)

I am using the papaja package in R markdown (which I love). If I do something like this: The test regression equation was: `r testregressionx1$full_result$modelfit$r2` I will get something like this once I knit to pdf (formatted correctly): R 2 =…
Kalif Vaughn
  • 353
  • 2
  • 5
  • 10
1
vote
1 answer

citing meta-analytic sources in papaja

I'm writing up a meta-analysis and I would like to cite papers from the meta-analysis in the bibliography with an asterisks before the last name. I'm able to use the nocite function in the reference section to include references not cited in the…
1
vote
2 answers

Knitting into a Word document in papaja

Probably a basic question but I can't see how to knit my RMarkdown document into a Word document. I've checked the various ReadMe's e.g. https://crsh.github.io/papaja_man/ but can't see anywhere where it is spelled out. Any help is appreciated.
PsychBrief
  • 55
  • 7
1
vote
1 answer

apa_table() increase table width

How do I increase the width of an apa_table in R Markdown. I'm using the papaja package. I would like the width to be long enough to fit the table's title. This is the code I'm using for my tables: ```{r '1996 - 1997 Count Matrix',echo=FALSE,…
gm007
  • 547
  • 4
  • 11
1
vote
1 answer

Error "there is no package called data.table" when loading afex

I'm trying to work through the example.Rmd file from https://github.com/crsh/papaja to learn how to create APA scripts in R markdown. First step is simply loading the libraries: ```{r message = FALSE, warning =…
Caro
  • 11
  • 2