DS4PS / cpp-527-spr-2021

http://ds4ps.org/cpp-527-spr-2021/
0 stars 0 forks source link

Knitting the RMarkdown Files #18

Open kirstenronning opened 3 years ago

kirstenronning commented 3 years ago

I have edited my Index.Rmd file, but when I go to knit it to generate the HTML resume, it gets to 100% but returns the following error:

output file: resume.knit.md
UTF-8 decoding error in resume.utf8.md at byte offset 6668 (fc).
The input must be a UTF-8 encoded text.
Error: pandoc document conversion failed with error 92
Execution halted

I thought this was something that was caused by me accidentally deleting a line of code, but when I try to knit the unedited Resume.Rmd file, it generates the same error response.

lecy commented 3 years ago

Do you know if you have any special characters in your CSV file?

Please include some links to index.Rmd and your CSV for inspection. I can't determine a lot from the error without seeing the code and data that generated it.

kirstenronning commented 3 years ago

Link to CSV: https://github.com/kirstenronning/CV2/blob/main/positions.csv Link to index.Rmd: https://github.com/kirstenronning/CV2/blob/main/index.Rmd

Thank you.

lecy commented 3 years ago

It knitted for me first try. Might be a ghost in the machine - try closing down R Studio, re-opening your index.rmd file and knitting with a fresh environment. Let me know if that works.

You might need to move some of your margin text around (asides mostly) because the first page is crowded and blending together. Update some of the original links to Nick Strayer's page. Otherwise it's coming together.

image

kirstenronning commented 3 years ago

I closed R Studio out and reopened it, and got the same error. I also reinstalled R Studio entirely, and I am still getting the error message.

lecy commented 3 years ago

Two thoughts - open your CSV file in a text editor like notebook (typically right-click on the file and select "open with" then choose a program).

Scroll around and see if you find any weird characters. I see a couple.

the ÒMapsÓ and ÒLeafletÓ packages

Replace with regular characters. You might open in Excel and re-save as a CSV but pick a the UTF8 version, which is another way to sanitize some of the characters.

Otherwise, can you share your session info?

sessionInfo()
R version 4.0.1 (2020-06-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           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] rstudioapi_0.11  knitr_1.30       magrittr_2.0.1   tidyselect_1.1.0 R6_2.4.1         rlang_0.4.10     dplyr_1.0.0     
 [8] tools_4.0.1      xfun_0.20        htmltools_0.5.0  ellipsis_0.3.1   yaml_2.2.1       digest_0.6.25    tibble_3.0.3    
[15] lifecycle_0.2.0  crayon_1.3.4     purrr_0.3.4      vctrs_0.3.2      rsconnect_0.8.16 glue_1.4.2       evaluate_0.14   
[22] rmarkdown_2.3    stringi_1.5.3    compiler_4.0.1   pillar_1.4.6     forcats_0.5.0    generics_0.1.0   pagedown_0.13   
[29] pkgconfig_2.0.3 
lecy commented 3 years ago

One more thought - try downloading your files from GitHub, unzipping, and knitting:

https://github.com/kirstenronning/CV2/archive/main.zip

This is how I tested your resume and I did not get the error. That would at least determine whether it is an OS or system config problem versus a CSV or RMD problem.

kirstenronning commented 3 years ago

I saved my CSV as the UTF8 version, and that allowed me to successfully knit my file. Thank you for all of the detail and helping me out. I will adjust the Asides to make sure that there is no overlapping text.

lecy commented 3 years ago

Excellent