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 like to keep track of the libraries used in a character vector, and at times, an empty string gets added to the character vector of strings that are passed to write_bib().
x <- c("", "haven", "knitr")
knitr::write_bib(x)
# Error in isNamespaceLoaded(pkg) :
# attempt to use zero-length variable name
Although I can remove it beforehand, I would like knitr::write_bib() to ignore any empty strings passed to it and create references based on the other packages.
I have provided the necessary information about my issue.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('knitr'). 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('yihui/knitr').
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.
The text was updated successfully, but these errors were encountered:
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
I like to keep track of the libraries used in a character vector, and at times, an empty string gets added to the character vector of strings that are passed to
write_bib()
.Although I can remove it beforehand, I would like
knitr::write_bib()
to ignore any empty strings passed to it and create references based on the other packages.Session Info
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. 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('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: