Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用RCurl将Curl转换为R_R_Rcurl - Fatal编程技术网

使用RCurl将Curl转换为R

使用RCurl将Curl转换为R,r,rcurl,R,Rcurl,我需要在R中查询这个curl代码: curl -u user:pwd \ -k https://localhost/adapars/apply/Iris_NN?maxThreads=8 \ -X POST -F \ file=@Iris_NN.csv 我正在使用RCurl,但我真的不知道怎么做。在httr 未测试,但: library("httr") url = "https://localhost/adapars/apply/Iris_NN?maxThreads

我需要在R中查询这个curl代码:

curl -u user:pwd \
     -k https://localhost/adapars/apply/Iris_NN?maxThreads=8 \
     -X POST -F \
     file=@Iris_NN.csv
我正在使用
RCurl
,但我真的不知道怎么做。

httr

未测试,但:

library("httr")
url = "https://localhost/adapars/apply/Iris_NN?maxThreads=8"
POST(url, authenticate("user", "pwd"), body=list(file = upload_file("Iris_NN.csv")))
httr中

未测试,但:

library("httr")
url = "https://localhost/adapars/apply/Iris_NN?maxThreads=8"
POST(url, authenticate("user", "pwd"), body=list(file = upload_file("Iris_NN.csv")))
httr中

未测试,但:

library("httr")
url = "https://localhost/adapars/apply/Iris_NN?maxThreads=8"
POST(url, authenticate("user", "pwd"), body=list(file = upload_file("Iris_NN.csv")))
httr中

未测试,但:

library("httr")
url = "https://localhost/adapars/apply/Iris_NN?maxThreads=8"
POST(url, authenticate("user", "pwd"), body=list(file = upload_file("Iris_NN.csv")))

它实际上使用了一个小修改:library(“httr”)url=“”dataok,谢谢,我会更新上面的代码块它实际上使用了一个小修改:library(“httr”)url=“”dataok,谢谢,我会更新上面的代码块它实际上使用了一个小修改:library(“httr”)url=“”dataok,谢谢,我将更新上面的代码块它实际上通过一个小的修改工作:library(“httr”)url=”“dataok,谢谢,我将更新上面的代码块