swirlify icon indicating copy to clipboard operation
swirlify copied to clipboard

lesson_to_html ignores depends.txt

Open elinw opened this issue 9 years ago • 2 comments

The conversion from lesson to rmd does not create the appropriate library() commands. I guess one could say to just use name spacing but although I do teach that as part of my course, it isn't in the earlier lessons and it would just be cleaner to handle it.

elinw avatar Oct 16 '16 18:10 elinw

Hi @elinw,

lesson_to_html() needs major work, thanks for making me aware of this.

seankross avatar Oct 18 '16 15:10 seankross

Hi @seankross I was thinking it would be possible to use the function from swirl but I think that's actually too complicated ... it is probably reasonable to assume that if you are using lesson_to_html() that the packages are installed. In which case you could just use library() pretty easily.

elinw avatar Oct 19 '16 03:10 elinw