Fix R script for DL documentation: R API has changed.