Open tim-ness opened 3 years ago
That’s strange. It could be an internet connection problem. I would try running it again after restarting R Studio.
otherwise I would Google the error message (I can’t search for it from the image). What is your sessionInfo()?
The error suggests the file knit fine from RMD to MD, so I don’t think it’s a special character issue. The error occurred while converting the MD file to HTML.
My guess is the connection to the google fonts API got interrupted. Might work next time you try it.
I have restarted R Studio a few times, as well as deleting and re-cloning the files, a few times, to the same effect.
I also Googled the error and it does say it's a connectivity issue, but I'm not sure how to deal with that? I'm not having any other connectivity issues with any devices or connections.
sessionInfo() R version 4.0.4 (2021-02-15) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] knitr_1.31 magrittr_2.0.1 tidyselect_1.1.0
[4] munsell_0.5.0 colorspace_2.0-0 R6_2.5.0
[7] rlang_0.4.10 fansi_0.4.2 dplyr_1.0.4
[10] tools_4.0.4 grid_4.0.4 gtable_0.3.0
[13] xfun_0.21 utf8_1.1.4 DBI_1.1.1
[16] htmltools_0.5.1.1 ellipsis_0.3.1 digest_0.6.27
[19] yaml_2.2.1 assertthat_0.2.1 tibble_3.0.6
[22] lifecycle_1.0.0 crayon_1.4.1 purrr_0.3.4
[25] ggplot2_3.3.3 vctrs_0.3.6 evaluate_0.14
[28] glue_1.4.2 rmarkdown_2.7 compiler_4.0.4
[31] pillar_1.5.0 generics_0.1.0 scales_1.1.1
[34] pagedown_0.13 pkgconfig_2.0.3
My other thought regarding connectivity is that some anti-viral programs or firewalls will limit the ability of software to "phone home" - a common way for hackers to leak data from a device.
Since it's R Studio calling R which then starts loading external libraries through an API it may be blocked somewhere?
You might poke around stack overflow when you google the error to see if it mentions anything like that, or check your Windows Defender settings.
Here is some more discussion about errors related to the Google font API, and it suggests that updating Pandoc (which is done by updating your rmarkdown package) might be the fix you need.
https://github.com/jgm/pandoc/issues/3629
Specifically, the current import command uses a | instead of a %.
Prelude Network.URI> isURI "https://fonts.googleapis.com/css?family=Open+Sans|Roboto"
False
Prelude Network.URI> isURI "https://fonts.googleapis.com/css?family=Open+Sans%7CRoboto"
True
Pandoc 2.0 should standardize these problems so that you are not getting an import error.
When you change the YAML settings to self_contained=false, are you still getting font warnings, even if it does end up knitting?
---
title: "Nick Strayer's CV"
author: Nick Strayer
date: "`r Sys.Date()`"
output:
pagedown::html_resume:
css: ['css/styles.css', 'resume']
# set it to true for a self-contained HTML page but it'll take longer to render
self_contained: false
---
I tried knitting the RMD files first after cloning and loading them onto my machine, and I immediately get an error similar to Kristen's. I haven't made any edits to the RMD files yet. I saved the .csv as a UTF-8 version which didn't help, and then I opened it in Notepad and removed all the special characters I found, which also didn't help.
It looks like it may be something with the font?