r - 从 github 下载和/或导入 R 数据
问题描述
我想从 pslmData 下载和/或导入plist.RData。我在 R 中使用了以下命令
githubURL <- "https://github.com/myaseen208/pslmData/tree/master/PSLM13-14/plist.RData"
load(url(githubURL))
引发以下错误:
Error in load(url(githubURL)) :
the input does not start with a magic number compatible with loading from a connection
然后我使用下面给出的方法,得到以下错误:
library(repmis)
source_data("https://github.com/myaseen208/pslmData/tree/master/PSLM13-14/plist.RData?raw=True")
这给出了以下错误:
Downloading data from: https://github.com/myaseen208/pslmData/tree/master/PSLM13-14/plist.RData?raw=True
SHA-1 hash of the downloaded data file is:
b1a116e10c224d3e37c34567e73fd632b355c301
Error in load(data, envir = envir, ...) :
bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘filebb24b83d1f5’ has magic number ''
Use of save versions prior to 2 is deprecated
我想知道如何下载和/或导入这些数据。谢谢
解决方案
推荐阅读
- android - 从活动 B 导航到活动 A 时清除意图
- c - fgets 在 while 循环内进行登录验证
- elasticsearch - 这些日志的 grok 模式应该是什么?(文件节拍的摄取管道)
- ios - 检查导航堆栈中是否存在不止一次特定的 ViewController
- java - 如何在 jsp servlet 中创建多语言 Web 应用程序?
- php - 此页面无法正常工作,目前无法处理此请求。Codeigniter 应用程序中的 HTTP 错误 500
- python - 分段优化 gurobi
- regex - 用于查找匹配组和方括号之间的匹配文本的正则表达式
- c++ - 影响单元测试结果的全局变量问题
- python - 在列表中切片元组(python)