You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think create_article() should generate an article that compiles out of the box and that passes initial_check_article(). Currently, it does not. Here's the reproducible example:
I think this is unnecessary friction for someone who's trying to write an RJ article for the first time. I argue that either all required packages should be installed together with the package, or the template article should not depend on them. BTW, 'plotly' has large number of package dependencies, so requiring a user to install all those in order to try out the template is a big ask, especially if the user installs packages from source.
Also, the user immediately ends up in a trial'n'error phase trying to get these packages installed;
> rmarkdown::render("test.Rmd")
processing file: test.Rmd
|....... | 15% [setup]
Quitting from lines 36-41 [setup] (test.Rmd)
Error in library(palmerpenguins) :
there is no package called 'palmerpenguins'
> rmarkdown::render("test.Rmd")
processing file: test.Rmd
|....... | 15% [setup]
Quitting from lines 36-41 [setup] (test.Rmd)
Error in library(kableExtra) : there is no package called 'kableExtra'
Comment: I am on an up-to-date Ubuntu 22.04 running R 4.3.3 with up-to-date packages. I'm not sure if the above LaTeX error is only on my machine, or it happens to all users. Anyway, continuing with the checks ...
>rjtools::initial_check_article(".")
── Initialcheckresults: ─────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔ SUCCESS:Submissionhasconsistentlynamedtex, bib, andRfiles!WARNING:Thearchivecontainshiddenfileswhichwillberemoved:.Rhistory
✔ SUCCESS:Fileanddirectorynamesarecompliant.
✖ ERROR: Image(s) detectedinthemaindirectory:Rlogo-5.png.Theyshouldbeplacedinthefigures/folder.
✔ SUCCESS:Noproblematicfilefound
✔ SUCCESS:Possiblemotivationletterfound:motivation-letter, motivation-letter.pdf
✔ SUCCESS:Articletitleformattedintitlecase.
✔ SUCCESS:Sectiontitlesformattedinsentencecase.
✔ SUCCESS:Abstractformattedinplaintext.
ℹ NOTE:Apotentiallistofspellingtocheck:tooltips, tooltipWhat's the name of the package being proposed in the article? Press Enter if none. ✔ SUCCESS: No proposed package for the article, nothing to check.✔ SUCCESS: No error with the use of \pkg markup.✖ ERROR: 1 of 6 package(s) not available on CRAN: ToOoOlTiPs✔ SUCCESS: All the references contain DOI or URLError in yaml::yaml.load(..., eval.expr = TRUE) : Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 5, column 3
As you see, the example template article, produces two check ERRORs, one WARNING, and one NOTE. There is also a run-time error.
I think that the template article should produce all 'SUCCESS'.
In summary: It think a user/author should be able to run:
I think
create_article()
should generate an article that compiles out of the box and that passesinitial_check_article()
. Currently, it does not. Here's the reproducible example:Comment: Couldn't
create_article()
automatically "align the file name between test.Rmd and RJreferences.bib" (whatever that means)?Then, rendering this article:
I think this is unnecessary friction for someone who's trying to write an RJ article for the first time. I argue that either all required packages should be installed together with the package, or the template article should not depend on them. BTW, 'plotly' has large number of package dependencies, so requiring a user to install all those in order to try out the template is a big ask, especially if the user installs packages from source.
Also, the user immediately ends up in a trial'n'error phase trying to get these packages installed;
...
Eventually, the template article builds:
Comment: I am on an up-to-date Ubuntu 22.04 running R 4.3.3 with up-to-date packages. I'm not sure if the above LaTeX error is only on my machine, or it happens to all users. Anyway, continuing with the checks ...
As you see, the example template article, produces two check ERRORs, one WARNING, and one NOTE. There is also a run-time error.
I think that the template article should produce all 'SUCCESS'.
In summary: It think a user/author should be able to run:
with zero hiccups.
The text was updated successfully, but these errors were encountered: