Create zip file: error running command “ ” had status 127

后端 未结 2 1647
眼角桃花
眼角桃花 2020-11-28 12:38

I am trying to create a zip file from multiple files using the zip function in r, but I keep getting this error message: running command \'\"zip\" -r9X \"data.

相关标签:
2条回答
  • 2020-11-28 13:18

    I was able to solve the problem by removing the write-protection on ~/Users/<NAME>/Documents/R/win-library.

    0 讨论(0)
  • 2020-11-28 13:24

    Here is how I solved this problem on my Windows 7 computer:

    1. Install Rtools from HERE.
    2. Locate the folder that Rtools is installed. In my case it is at C:\Rtools.
    3. Add C:\Rtools\bin path to the system path.

    Adding C:\Rtools\bin to the system path:

    1. Go to Control Panel >> System and Security >> System
    2. Go to Advanced System Settings
    3. Open Advanced tab
    4. Click Environmental Variables... button
    5. Select Path variable and click Edit button
    6. If there is nothing as a "Variable Value" you can simply write C:\Rtools\bin. If there is already a value, then add ;C:\Rtools\bin to the end of it.
    7. Click OK, OK...
    8. Restart R, it should work.

    I hope this helps. I found the solution HERE.

    0 讨论(0)
提交回复
热议问题