Tag: rcurl

在R上传超过2.15 GB的文件

我有一个手动过程,我正在上传5-6 GB的文件通过curl的Web服务器: curl -X POST –data-binary @myfile.csv http://myserver::port/path/to/api 这个过程工作正常,但我很想使用R自动化它。问题是,我要么不知道我在做什么,或者curl的R库不知道如何处理大于2GB的文件: library(RCurl) postForm( "http://myserver::port/path/to/api", file = fileUpload( filename = path.expand("myfile.csv"), contentType = "text/csv" ),.encoding="utf-8") Yeilds Error: Internal Server Error httr也不起作用: library(httr) POST( url = "http://myserver:port/path/to/api", body = upload_file( path = path.expand("myfile.csv"), type = 'text/csv'), verbose() ) 这产生: Response [http://myserver:port/path/to/api] Date: 2015-06-30 11:11 Status: 400 Content-Type: <unknown> <EMPTY […]

“非零退出状态”R 3.0.1“XML”和“RCurl”

在我的Ubuntu机器13.10上安装XML和/或RCurl时遇到了一些麻烦。 我今天进行了所有sudo更新和升级。 我正在尝试使用拨浪鼓。我无法安装使用拨浪鼓所需的“XML”。 这几乎是一年之后在这里问过的和另一个操作系统相同的问题。 这里是我回来的错误信息: > install.packages("RCurl") Installing package into '/home/steven/R/x86_64-pc-linux-gnu-library/3.0' (as 'lib' is unspecified) trying URL 'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.1.tar.gz' Content type 'application/x-gzip' length 870915 bytes (850 Kb) opened URL ================================================== downloaded 850 Kb * installing *source* package 'RCurl' … ** package 'RCurl' successfully unpacked and MD5 sums checked checking for curl-config… no Cannot find curl-config ERROR: […]