Thank you for the easy and aesthetically pleasing package of information via session_info().
In my work, I list the packages used in every R file and then combine them at the end. At times, an empty string appears in the character vector sent to argument package (package = ""). The function yields an error:
xfun::session_info(packages = c("", "xfun"))
Error in isNamespaceLoaded(pkg) :
attempt to use zero-length variable name
The error indicates that removing an empty string from package would give the result.
What I would like is for the function to ignore "" and give the results of the non-empty strings (in this case xfun.) instead of preparing packages with no empty strings. The result would be the information above using the call xfun::session_info(packages = c("", "xfun"))
[] 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('xfun'). 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/xfun').
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.
[Given that this is a feature request for this function, I didn't ask on Stack Overflow.]
Thank you for the easy and aesthetically pleasing package of information via
session_info()
.In my work, I list the packages used in every R file and then combine them at the end. At times, an empty string appears in the character vector sent to argument
package
(package = ""
). The function yields an error:The error indicates that removing an empty string from
package
would give the result.What I would like is for the function to ignore
""
and give the results of the non-empty strings (in this casexfun
.) instead of preparingpackages
with no empty strings. The result would be the information above using the callxfun::session_info(packages = c("", "xfun"))
By filing an issue to this repo, I promise that
xfun::session_info('xfun')
. 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/xfun')
.I understand that my issue may be closed if I don't fulfill my promises.
[Given that this is a feature request for this function, I didn't ask on Stack Overflow.]