I am using a for loop to generate model results and printing them in r markdown. To keep it tidy it would be nice to print comments before printing the model result.
Is there a way to print commented text behind hashtags in R?
e.g.
for(i in c(1:10)){
#this is the number
print(i)}
vs
#this is the number
print(1)
#this is the number
print(2)
#this is the number
print(3)
#this is the number
print(4)