compile_notebook function

Compiling R scripts to a notebook