获取(url)返回错误

获取(url)返回错误,r,httr,R,Httr,当我使用下面的命令时 url = 'www.somesite.com' GET(url) 我得到以下错误-我不确定它与什么有关 Error in function (type, msg, asError = TRUE) : easy handled already used in multi handle 试试这个。您需要指定协议 url = 'http://www.somesite.com'; GET(url) 如果您直接使用RCurl,则不会出现错误: > RCurl::

当我使用下面的命令时

url = 'www.somesite.com'
GET(url)
我得到以下错误-我不确定它与什么有关

Error in function (type, msg, asError = TRUE)  : 
  easy handled already used in multi handle

试试这个。您需要指定协议

url = 'http://www.somesite.com'; GET(url)

如果您直接使用RCurl,则不会出现错误:

> RCurl::httpGET('www.somesite.com')
[1] "    <html data-adblockkey=\"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANHZLSNGAhe0lWbSycFlY7t3c4tFHP+Epw8naGgm3CR8CftAihnB7Jkt+vFmvIf3BV/p3RpOrZ/XbZsX9uh0m9UCAwEAAQ==_jJgyGlO27u/CWR1xPtVqducj4Y1JMgxGGKTmh0wKT2NiLTbZW1DUVt7xP5VsCa0q5F4+744tv9exTeUO7nf6tQ==\"> \n\n<head>\n        <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n    <title>SomeSite.com: The Leading Some Site Site on the Net</title>\n            <script type=\"text/javascript\">;\n        if(self != top) top.location.href = 'http://'+location.hostname+'/?redir=frame&uid=www5301308f09b0e8.72483303';\n        </script>\n        <script type=\"text/javascript\" src=\"http://return.bs.domainnamesales.com/return_js.php?d=somesite.com&s=1392586895\"></script>\n\n    <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js\"></script>\n    <script type=\"text/javascript\">\n        function GetParam(name) {\n            var match = new RegExp(name +  \n                \"=*([^&]+)*\", \"i\").exec(location.search);   \n            if (match == null)             \n                match = new RegExp(name + \"=(.+)\", \"i\").exec(location.search);  \n            if (match == null) return null;             \n                match = match + \"\";           \n            //**convert match to a string       \n            result = match.split(\",\");          \n            return decodeURIComponent(result[1]);     \n        }  \n\n        function logStatus(type) {   \n            $.ajax({         \n                cache: false, \n                global: false,  \n                async: true,    \n                type: \"POST\",  \n                url: '/logpstatus.php',\n                data: {uid: GetParam('uid'), type: type}  \n            });                \n        }        \n    </script>\n\n    </head>\n    <frameset cols=\"1,*,1\" border=0>\n        <frame name=\"top\" src=\"tg.php?uid=www5301308f09b0e8.72483303\" scrolling=no frameborder=0 noresize framespacing=0 marginwidth=0 marginheight=0>\n        <frame src=\"search_caf.php?uid=www5301308f09b0e8.72483303&src=linen&abp=1\" scrolling=\"auto\" framespacing=0 marginwidth=0 marginheight=0 noresize>\n        <frame src=\"page.php?www5301308f09b0e8.72483303\"></frame>\n    </frameset>\n    <noframes>\n        somesite.com has been connecting our visitors with providers of Build A Web Site, Cheap Web Design, Create Web Sites and many other related services for nearly 10 years. Join thousands of satisfied visitors who found Ecommerce Web Design, Flash Web Design, Graphic Web Design, Multimedia Designs, and Search Engine Optimization.<br/>    </noframes>\n</html>\n\n"
RCurl::httpGET('www.somesite.com') [1] “\n\n\n\n SomeSite.com:网络上领先的某个站点\n;\n if(self!=top)top.location.href='http://'+location.hostname+'/?redir=frame&uid=wwww5301308f09b0e8.72483303';\n\n\n\n\n函数GetParam(name){\n var match=new RegExp”(name+\n\“=*([^&]+*\”,\“i\”).exec(location.search);\n if(match==null)\n match=new RegExp(name+\“=(.+)\”,\“i\”).exec(location.search);\n if(match==null)返回null;\n match=match+\”\“;\n//**将匹配转换为字符串\n result=match.split(\”,\”);\n返回decodeURIComponent(结果[1]);\n}\n\n函数logStatus(类型){\n$.ajax({\n缓存:false、\n全局:false、\n异步:true、\n类型:\'POST\,\n url:'/logpstatus.php',\n数据:{uid:GetParam('uid'),类型:}\n});\n}\n\n\n\n\n\n\n\n\n\n\n somesite.com近10年来一直在将我们的访问者与构建网站、廉价网站设计、创建网站和许多其他相关服务的提供商联系起来。加入数千名找到电子商务网站设计、Flash网站设计和图形网站的满意访问者的行列设计、多媒体设计和搜索引擎优化。
\n\n\n
您应该尝试提供一个。您的代码不会产生您描述的错误。我重新启动了R会话,我想它解决了问题。。