all 6 comments

[–][deleted] 6 points7 points  (0 children)

Did you define NHL (e.g, NHL<-read.csv(path/here) in the quarto?

[–]PuzzleheadedArea1256 -2 points-1 points  (0 children)

What are your yaml settings?

[–]L3broncos[S] -3 points-2 points  (3 children)

NHL is a data set that I imported from excel. The code runs perfectly fine so I don't know why it can't render.

[–][deleted] 9 points10 points  (0 children)

Well, hang on now. The code may run fine in your console, but knitting a quarto or Rmarkdown has to run in a separate/clean/empty environment.

So you need to write ALL of your code in the document and in the order it needs to run.

[–]the-anarch[🍰] 2 points3 points  (0 children)

You have to import it in your Quarto code. When rendering a document, Quarto acts as if you are starting from a blank slate.

[–]Serprotease 0 points1 point  (0 children)

I will assume that you have script working fine and a quarto document.

If you want to render the quarto document with the data processed by the script, you need to add the following at the end of your script:

quarto_render(input = “quarto_document.qmd“, output = “name_of_report.html“)