Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No encoding supplied: defaulting to UTF-8." error #102

Open
jcolomb opened this issue Jul 16, 2017 · 5 comments
Open

"No encoding supplied: defaulting to UTF-8." error #102

jcolomb opened this issue Jul 16, 2017 · 5 comments

Comments

@jcolomb
Copy link

jcolomb commented Jul 16, 2017

knitcitations seems to be broken by me (used to work before).
citep("doi") works, but then
bibliography() returns the error mentioned above.

if I use write.bibtex, it does write the bib file correctly.

citing R packages works, btw.
I am the only one with the problem?

@cboettig
Copy link
Owner

Can you paste in sessionInfo() you have when error occurs?

@jcolomb
Copy link
Author

jcolomb commented Jul 17, 2017

just reinstall everything fresh on a different computer, got same error.

session_info()
Session info ------------------------------------------------
setting value
version R version 3.4.1 (2017-06-30)
system x86_64, mingw32
ui RStudio (1.0.143)
language (EN)
collate English_United Kingdom.1252
tz Europe/Berlin
date 2017-07-17

Packages ----------------------------------------------------
package * version date source
backports 1.1.0 2017-05-22 CRAN (R 3.4.0)
base * 3.4.1 2017-06-30 local
compiler 3.4.1 2017-06-30 local
curl 2.7 2017-06-26 CRAN (R 3.4.1)
datasets * 3.4.1 2017-06-30 local
devtools * 1.13.2 2017-06-02 CRAN (R 3.4.1)
digest 0.6.12 2017-01-27 CRAN (R 3.4.1)
evaluate 0.10.1 2017-06-24 CRAN (R 3.4.1)
git2r 0.18.0 2017-01-01 CRAN (R 3.4.1)
graphics * 3.4.1 2017-06-30 local
grDevices * 3.4.1 2017-06-30 local
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.1)
httr 1.2.1 2016-07-03 CRAN (R 3.4.1)
knitr 1.16 2017-05-18 CRAN (R 3.4.1)
magrittr 1.5 2014-11-22 CRAN (R 3.4.1)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.1)
methods * 3.4.1 2017-06-30 local
R6 2.2.2 2017-06-17 CRAN (R 3.4.1)
Rcpp 0.12.12 2017-07-15 CRAN (R 3.4.1)
rmarkdown 1.6 2017-06-15 CRAN (R 3.4.1)
rprojroot 1.2 2017-01-16 CRAN (R 3.4.1)
stats * 3.4.1 2017-06-30 local
stringi 1.1.5 2017-04-07 CRAN (R 3.4.0)
stringr 1.2.0 2017-02-18 CRAN (R 3.4.1)
tools 3.4.1 2017-06-30 local
utils * 3.4.1 2017-06-30 local
withr 1.0.2 2016-06-20 CRAN (R 3.4.1)
yaml 2.1.14 2016-11-12 CRAN (R 3.4.1)

@jcolomb
Copy link
Author

jcolomb commented Jul 17, 2017

library (knitcitations)

citep("10.1002/9780470316801")
bibliography()

@jcolomb
Copy link
Author

jcolomb commented Jul 17, 2017

hoho, giving a style to write into, does make the trick.
you plobably just want to had a default style to bibliography() to avoid the error...

bibliography(style ="text")

> [1] L. Kaufman and P. J. Rousseeuw, ed. _Finding
Groups in Data_. John Wiley & Sons, Inc., Mar. 1990.
DOI: 10.1002/9780470316801. <URL:
https://doi.org/10.1002/9780470316801>.

cboettig added a commit that referenced this issue Jul 17, 2017
@cboettig
Copy link
Owner

thanks, fix pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants