fix typo on completed R file