Closed dpolychr closed 4 years ago
Hi @dpolychr
Thank you for sharing your error case.
The error in html seems to be related to the encoding.
In the case of pdf, latex is used to generate the document. The error message indicates that latex's setspace package is not installed. If the report was generated normally with other data, it may be due to the data.
Can you share data to determine and resolve the cause more accurately?
Thanks & Vest Regards, Choonghyun Ryu
Hi @choonghyunryu,
Many thanks for you response! Unfortunately I am not able to share this dataset as it contains sensitive data. However I can confirm that I get the same error with the starwars datasets from tidyverse:
library(tidyverse)
starwars %>% diagnose_report(output_file = "Diagn.pdf")
and output is:
output file: /var/folders/54/f4d8z7ps1lx_w4xcj_8p16y0mjrjn3/T//RtmpEt7Lkt/Diagn.tex
tlmgr search --file --global '/setspace.sty'
Proxy must be specified as absolute URI; '194.34.82.250:10263' is not at /Users/kkrg658/Library/TinyTeX/tlpkg/TeXLive/TLDownload.pm line 44.
! LaTeX Error: File `setspace.sty' not found.
! Emergency stop.
<read *>
Error: Failed to compile Diagn.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See Diagn.log for more info.
In addition: Warning message:
In system2("tlmgr", args, ...) :
running command ''tlmgr' search --file --global '/setspace.sty'' had status 255
Many thanks for your help, much appreciated
Hi @dpolychr
Here are some solutions. Please check and contact us.
1. When dlookr generates a pdf report, it uses Latex. Perhaps no setspace package (not R package) is installed on your Latex system. Please refer to https://yihui.org/tinytex/faq/, https://yihui.org/tinytex/r/#debugging to install the setspace package.
Create and compile the following Latex example.
\documentclass{article} \usepackage{setspace}
\begin{document} \doublespacing body \end{document}
2. Quitting from lines 109-122 (Diagnosis_Report.Rmd) Error in doc_parse_raw (x, encoding = encoding, base_url = base_url, as_html = as_html,: Input is not proper UTF-8, indicate encoding! Bytes: 0xA0 0x4D 0x20 0x3C [9]
This is an encoding issue. Your data seems to contain special characters that are not English characters. How many strings can you send me?
3. The starwars data in the tidyverse package contains a list object in a variable. However, dlookr does not support the list variable.
I was able to get the normal result by removing the list object as follows:
starwars%>% select (-films, -vehicles, -starships)%>% diagnose_report (output_file = "Diagn.pdf")
starwars%>% select (-films, -vehicles, -starships)%>% diagnose_report (output_file = "Diagn.pdf")
There is no long-term answer, so it close.
Hi @choonghyunryu,
First of, many thanks for this package, really useful for EDA! I am using the function diagnose_report and it gives me errors when trying to generate either html or pdf. For instance:
df %>% diagnose_report(output_format = "html")
gives:
and
df %>% diagnose_report(output_file = "Diagn.pdf")
gives:
Any idea why this might be happening?
My session info:
Many thanks, Dimitris