-
Notifications
You must be signed in to change notification settings - Fork 522
Description
Greetings! Thank you for allowing me to produce an article to fit the R Journal without leaving the R Markdown environment. Indeed, I used rticles::rjournal_article() on my markdown document and sent it off to the journal, as I thought that the function will take care of the formatting details. Again, thank you for this! Unfortunately, my article got rejected because it didn't conform to the submission standards provided in https://journal.r-project.org/submissions.html.
So, I investigated further. I think that the rjournal_article() function already accomplishes these tasks for me in the instructions to the authors of the R Journal (p. 2).
rjournal_article()renames RJtemplate.tex for merjournal_article()edits RJwrapper.tex for merjournal_article()runs RJwrapper.tex repeatedly for me so that RJwrapper.pdf looks right.
However, rjournal_article() is different from the submission requirements in that the following required items are not done:
[ ] The RJreferences.bib needs to be the same name as the R file.
[ ] The Rlogo5.png is used, not Rlogo.png
[ ] The RJournal.sty may be out of date. I am unsure -- but that was one of the requirements.
[ ] There is no R Script that is produced, but a R script is required in the journal. To produce a R Script from Rmarkdown, I have been using r knitr::purl( Rmd, documentation = 1) where Rmd is the location of Rmarkdown file. The documentation=1 ensures that chunk headers are added to the code and the R file looks readable.
[ ] by two authors should be "Author 1 and Author 2", not "Author 1, Author 2".
[ ] The preamble used from the journal is different than the one used inrjournal_article().
Upon investigating, I noticed that the preamble.tex and *.tex created using rticles
\documentclass[10pt]{article}
\usepackage[usenames]{color} %used for font color
\usepackage{amssymb} %maths
\usepackage{amsmath} %maths
\usepackage[utf8]{inputenc} %useful to type directly diacritic characters
does not match up with the default R Journal template (RJwrapper.tex):
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{RJournal}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{array}
\usepackage{booktabs}
The reproducible example came from creating a template in RStudio using rticles and executing the resulting markdown file, located here:. I then compared these files to a download of the template files from the R Journal website: https://journal.r-project.org/submissions.html.
I am using these packages after executing xfun::session_info('rticles').
R version 3.5.2 (2018-12-20)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6, RStudio 1.2.1335
Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
Package version:
base64enc_0.1.3 digest_0.6.25 evaluate_0.14 glue_1.4.0 graphics_3.5.2 grDevices_3.5.2 highr_0.8
htmltools_0.4.0 jsonlite_1.6.1 knitr_1.28 magrittr_1.5 markdown_1.1 methods_3.5.2 mime_0.9
Rcpp_1.0.4 rlang_0.4.5 rmarkdown_2.1 rticles_0.10 stats_3.5.2 stringi_1.4.6 stringr_1.4.0
tinytex_0.16 tools_3.5.2 utils_3.5.2 xfun_0.12 yaml_2.2.1
By filing an issue to this repo, I promise that
- [X ] I have fully read the issue guide at https://yihui.name/issue/.
- [X ] I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('rticles'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles'). - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- [X ] I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.