-
Notifications
You must be signed in to change notification settings - Fork 7
Description
It would be nice to have canonical code snippets for various things. The main ones would be how to do on-desktop parallel code (all the code together including the detect cores, etc). Right now we walk through code, but it makes it hard to cut and paste for on-line. How do we want to handle that?
Idea is to use purl to grab and make reference scripts for each chapter automatically. But we want to control which chunks are included. Perhaps we can have an code_reference = TRUE header value for the code chunks, and then purl could maybe subset to those chunks flagged for inclusion.
Or come up with some other idea for making such reference things---if we have only a few, perhaps doing by hand is alas the right way.
NOTE: reviewing comments on purl gives no obvious control other than level of comments kept. Perhaps looking at purl code would help. Or perhaps other packages exist.