Open melindahiggins2000 opened 6 years ago
Seems to be related to how Windows is handling the UTF-8 characters (controlled by your locale settings), but not sure quite where it goes wrong (don't have a Windows box handy to debug, can't reproduce the error on Linux + Mac).
Can you try:
citep( RefManageR::as.BibEntry(citation("dplyr") ) )
I still get the same error - here are my code results:
> RefManageR::as.BibEntry(citation("dplyr"))
[1] H. Wickham, R. Francois, L. Henry, et al. _dplyr: A
Grammar of Data Manipulation_. R package version 0.7.4.
2017. <URL: https://CRAN.R-project.org/package=dplyr>.
> citep(RefManageR::as.BibEntry(citation("dplyr")))
Error in nchar(aut) : invalid multibyte string, element 1
By the way, this is not a show stopper when I'm running it inside of my Rmarkdown document. The document does compile, but this is what I get for the dplyr
reference in my document - basically the authors are stripped off. Something in the dplyr
author list is causing the issue, I think...
? 2017. Dplyr: A Grammar of Data Manipulation. https://CRAN.R-project.org/package=dplyr.
Here is my reproducible example. When I use
citep()
with thecitation()
function, I get an error. I'm running Windows 10, R 3.4.3; RStudio 1.1.383. MysessionInfo()
is listed below, along with the code that produces the errorError in nchar(aut) : invalid multibyte string, element 1
.Note:
citep()
works fine for most of the other packages I'm currently citing in my project. I would appreciate any suggestions on how to fix this citation for thedplyr
package.