I decided to start a new document and to knit it everytime I added a chunk and I realized that the document knitted well until I arrived to this chunk.
data1 <- read_csv("lung.csv")
I am concerned because all the tables and graphs I need for my document come from this table and I do not know what to do. Please I would really appreciate your help.
Based on the error, it seems like you have labelled two code chunks with the same name "Importing dataset". knitr expects each chunk to have a unique label. Try changing the label ID for one of the duplicate chunk labels and re-knit.
output file: intro.knit.md Error: Functions that produce HTML output found in document targeting latex output. Please change the output type of this document to HTML. Alternatively, you can allow HTML output in non-HTML formats by adding this option to the YAML front-matter of your rmarkdown file: always_allow_html: true Note however that the HTML output will not be visible in non-HTML formats. Execution halted
What can I do for exporting the file as a pdf. I can export it into an HTML file but not PDF and I have Miktex and Texmaker already installed on my laptop.
This error means you have some content in your Rmd that produces HTML only content. Like htmlwidgets or else. If so, you can use as explained in the error message in your yaml header
always_allow_html: true
Note however that the HTML output will not be visible in non-HTML formats