fn run_r_cmd_check( shell: &Shell, no_build_vignettes: bool, error_on: RCmdCheckErrorOn, check_dir: Option<String>, ) -> Result<(), Box<dyn Error>>