I am using Bookdown for my grad project.
I would like to have a section of my manuscript run R-code then print the results IN the booklet. I am trying to teach specific tasks and would like to carry out the steps in the booklet.
The code is displayed. And the code runs separately BUT does NOT display in book.
I am emulating Roger Peng's book, Exploratory Data Analysis book where he does much the same thing.
For example:
So far I am using:
Load data:
#{r loadData}
pima.women <- read.csv("~/resources/Pima.tr2.csv")
dim(pima.women)
Is this possible?
Thank you
Matt