0

I am getting crazy because I have written a sql query under the RMySQL package in a rmarkdown document and I dont get the output of the query in the document, but yes in the code editor. I want to know how to get the output in the my document.

I need help because I search much around the web and I found nothing.

Clint
  • 6,133
  • 2
  • 27
  • 48
  • Hi there, can you please clarify a few things. Which editor are you using, and why are you expecting to see the results of a query in a static markdown document? Is it simply that you want to write a query in the editor and have the editor replace it with the results? – Clint Nov 28 '16 at 21:28
  • Hi =). I was using rstudio and I was written in rmarkdown, and I want that outputs me the result and the query in the result document =). – Raul Contreras Nov 29 '16 at 08:04

1 Answers1

0

You want to use the code chunk feature instead of inline code, as detailed in the documentation for rmarkdown here:

Code Chunks

This differs from inline code, in that the results can be put in the document as well as the query itself.

Clint
  • 6,133
  • 2
  • 27
  • 48