A new version of the SASmarkdown package (0.4.3) is available on CRAN. The ability to link code blocks is now automatically enabled. You just need to use the `collectcode=TRUE` chunk option to indicate code that needs to be used for later chunks. In addition, there is now a `spinsas` function that generates Markdown and HTML files from marked up SAS command files. If the first draft of your document is a SAS command file with comments, it can be easiest to simply add a few bits of markup and process that.
... View more