简体   繁体   English

R 中的“函数错误(类型、味精、asError = TRUE)”

[英]"Error in function (type, msg, asError = TRUE)" in R

I am getting this error when i run this code below to download data当我运行下面的代码下载数据时出现此错误

Error in function (type, msg, asError = TRUE) : Failed to connect to course1.winona.edu port 80: Timed out函数错误(类型、消息、asError = TRUE):无法连接到 course1.winona.edu 端口 80:超时

Any help would be appreciated任何帮助,将不胜感激

My code我的代码

library(RCurl)
urlfile <-'http://course1.winona.edu/bdeppa/Stat%20425/Data/Boston_Housing.csv'
downloaded <- getURL(urlfile, ssl.verifypeer=FALSE)
connection <- textConnection(downloaded)
dataset <- read.csv(connection, header=FALSE)

I don't think you need anything beyond read.csv .我认为除了read.csv之外你不需要任何东西。 This works for me:这对我有用:

urlfile <-'http://course1.winona.edu/bdeppa/Stat%20425/Data/Boston_Housing.csv'
dataset <- read.csv(urlfile)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 函数错误(类型,msg,asError = TRUE) - Error in function (type, msg, asError = TRUE) RCurl::ftpUpload() 未指定错误:“函数错误(类型,msg,asError = TRUE):” - RCurl::ftpUpload() unspecified error: "Error in function (type, msg, asError = TRUE) : " devtools :: install_github函数错误(type,msg,asError = TRUE): <not set> - devtools::install_github Error in function (type, msg, asError = TRUE) : <not set> 函数错误(类型,msg,asError = TRUE):libcurl中不支持或禁用协议https。 如何解决这个问题? - Error in function (type, msg, asError = TRUE) : Protocol https not supported or disabled in libcurl. How to fix this? R数据分析-qqplot-错误msg:“更大”中未实现的类型“列表” - R data analysis - qqplot - Error msg: unimplemented type 'list' in 'greater' LOGGER IN r,R中的味精功能 - LOGGER IN r, msg function in R R-qqplot-错误msg:等级错误(x,ties.method =“ min”,na.last =“ keep”):&#39;greater&#39;中未实现的类型&#39;list&#39; - R - qqplot - Error msg: Error in rank(x, ties.method = “min”, na.last = “keep”) : unimplemented type 'list' in 'greater' 如何避免在 R 中使用 sendmail 时出现“msg”丢失的错误? - How to avoid `"msg" is missing` error using sendmail in R? R mlogit() function:if (abs(x - oldx) < ftol) { 错误:需要 TRUE/FALSE 的地方缺少值 - R mlogit() function: Error in if (abs(x - oldx) < ftol) { : missing value where TRUE/FALSE needed R GWASTools createDataFile()错误:“错误…%in%名称(...)不正确” - R GWASTools createDataFile() error: “Error … %in% names(…) is not TRUE”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM