add rPackageNewVersion and truncate_pwd.sh