pcmathias / AACC-Introduction-to-R

Course content for How to Truly "Excel" at Data Analysis and Visualization: An Introduction to the R Programming Language
1 stars 1 forks source link

knitr output lines are prefixed with "#" #7

Closed nkrumm closed 5 years ago

nkrumm commented 6 years ago

Knitter output puts "##" before every line image

I am not sure what the standard is for this (coming from Python) but it is confusing for beginners, especially in the context of a beginner who is just learning what a code comment is.

I would propose to put specify comment=NA to knitr (globally).

hermands commented 5 years ago

Not sure if we have discussed this, but I agree.

How about we use: knitr::opts_chunk$set(echo = TRUE, comment=NA)

Anything else to add @pcmathias @jwrudolf?

pcmathias commented 5 years ago

This works for me and addresses #15 as well.

hermands commented 5 years ago

Change convention for header in #15