r:install.R返回“执行失败,错误代码127”

时间:2018-07-20 06:43:43

标签: r updates

我尝试使用以下命令更新R:

{
    "name": "yiisoft/yii2-app-advanced",
    "description": "Yii 2 Advanced Project Template",
    "keywords": ["yii2", "framework", "advanced", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "~2.0.6",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0"
    },
    "require-dev": {
        "yiisoft/yii2-gii": "~2.0.0",
        "yiisoft/yii2-debug": "~2.0.0",
        "yiisoft/yii2-faker": "~2.0.0",
        "codeception/base": "^2.2.3",
        "codeception/verify": "~0.3.1"
    },
    "config": {
        "process-timeout": 1800,
        "fxp-asset": {
            "enabled": false
        }
    },
    "repositories": {
        "packagist": {
            "type": "composer",
            "url": "https://packagist.phpcomposer.com"
        }
    }
}

但是我得到了:

install.R(keep_install_file=TRUE)

我可以在计算机上找到并运行The file was downloaded successfully into: C:\Users\goubegou\AppData\Local\Temp\Rtmp8wqvhS/R-3.5.1-win.exe >Running the installer now... >[1] FALSE >Warning messages: >1: running command ' /c C:\Users\goubegou\AppData\Local\Temp\Rtmp8wqvhS/R-3.5.1-win.exe'had status 127 >2: In shell(install_cmd, wait = wait, ...) : 'C:\Users\goubegou\AppData\Local\Temp\Rtmp8wqvhS/R-3.5.1-win.exe' execution failed with error code 127 ,但是安装程序似乎无法执行此操作。谁能告诉我该如何处理错误?谢谢大家!

1 个答案:

答案 0 :(得分:0)

您是否尝试过使用R cosole更新R?  我已经用R控制台完成了它,并且对我来说运行良好,所有旧软件包都保留了下来,并且运行良好。