FredHutch / VISCtemplates

Tools for writing reproducible reports at VISC
Other
6 stars 2 forks source link

Error with use_visc_docs() #77

Closed monicagerber closed 2 years ago

monicagerber commented 3 years ago

Error in if (key$key[h] != key$key[i]) { : argument is of length zero

monicagerber commented 2 years ago

This error occurs with use_bib(). When I remove the double brackets from {{R Core Team}} (line 454), I no longer get the error. However, the double brackets are needed for the citation, otherwise it gets cited as "Team, R Core".

> citation()

To cite R in publications use:

  R Core Team (2020). R: A language and
  environment for statistical computing. R
  Foundation for Statistical Computing, Vienna,
  Austria. URL https://www.R-project.org/.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2020},
    url = {https://www.R-project.org/},
  }

We have invested a lot of time and effort in
creating R, please cite it when using it for data
analysis. See also ‘citation("pkgname")’ for
citing R packages.
wfulp commented 2 years ago

After a ton of Goggling and trial and error I think I finally found a solution

author = "{R Core Team}" 🤞

monicagerber commented 2 years ago

This works, thanks Jimmy!