R:shell命令 - Wayback-machine-downloader未被认为是内部或外部命令,可操作程序或批处



我正在尝试使用shell命令从r中运行一个名为Wayback-machine-downloader的Ruby Gem命令:

shell(ruby_call)

但是我收到以下错误消息:

'Wayback_machine_downloader'不被识别为内部或外部命令,可操作程序或批处理文件。

警告消息:

1:运行命令'c: windows system32 cmd.exe/c Wayback_machine_downloader https://undergrodgendrectreptiles.com/-directory c:/users/oliver/oliver/websites/undergrounts/ustergorge'具有状态1

2:在shell(ruby_call)中: 'Wayback_machine_downloader https://undergroundreptiles.com/--directory c:/users/oliver/websites/udeground_19981212033710 -from 19981212033710-- conconcorrencion -concorrencion 200'执行失败。

当我直接从命令行运行完全相同的代码时,它可以完美运行。我需要在r/rstudio中更改一些设置?

我也尝试了系统命令,但这也不起作用:

system(ruby_call)

警告消息:

运行命令'Wayback_machine_downloader https://undergroundreptiles.com/--directory c:/users/oliver/weblesites/usterging _19981212033710-from 19981212033710 -Concorrency -concurrency 200'状态127

127

在运行之前将Ruby添加到路径上将修复它:

set PATH=C:/RailsInstaller/Ruby2.3.0/bin;%PATH%

如何将Ruby添加到Windows上的路径变量?

相关内容

最新更新