grateful icon indicating copy to clipboard operation
grateful copied to clipboard

include.RStudio = TRUE does not work with output = "table"

Open ivan-paleo opened this issue 1 year ago • 1 comments
trafficstars

No RStudio in the output table after knitting:

---
title: "Untitled"
output: html_document
bibliography: grateful-refs.bib
---

```{r}
library(R.utils)
library(grateful)
cite_packages(output = "table", out.dir = ".", include.RStudio = TRUE)
```

Replacing the last line with cite_packages(output = "paragraph", out.dir = ".", include.RStudio = TRUE) leads to RStudio being cited.

ivan-paleo avatar Dec 14 '23 13:12 ivan-paleo

I forgot to add my sessionInfo():

R version 4.3.2 (2023-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale: [1] LC_COLLATE=French_France.utf8 LC_CTYPE=French_France.utf8
[3] LC_MONETARY=French_France.utf8 LC_NUMERIC=C
[5] LC_TIME=French_France.utf8

time zone: Europe/Berlin tzcode source: internal

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] compiler_4.3.2 fastmap_1.1.1 cli_3.6.2 htmltools_0.5.7
[5] tools_4.3.2 rstudioapi_0.15.0 yaml_2.3.8 rmarkdown_2.25
[9] knitr_1.45 xfun_0.41 digest_0.6.33 rlang_1.1.2
[13] evaluate_0.23

ivan-paleo avatar Dec 14 '23 13:12 ivan-paleo

Is there any fix or workaround to that issue?

ivan-paleo avatar May 17 '24 13:05 ivan-paleo

Thanks, it's now possible to include RStudio with output = "table" (from version 0.2.7, only on github by now).

Pakillo avatar May 17 '24 17:05 Pakillo

I tested with the latest version and it works perfectly. Thanks!

ivan-paleo avatar May 27 '24 09:05 ivan-paleo