The command notangle -Rcmp.R compiler.nw extracts the file cmp.R to standard output.