special-case empty notebook export as R

unfortunately, this had to be fixed twice:
- once to deal with non-created file in R
- once to deal with rserve.js turning array[1] into a scalar

fixes #595