[英]r - read zip file from s3 using r
Is it possible to read a zipped sas
file (or any kind or file) from s3
using r?是否可以使用 r 从
s3
读取压缩的sas
文件(或任何类型或文件)?
Here is what I'm trying:这是我正在尝试的:
library(aws.s3)
library(haven)
s3read_using(FUN = read_sas(unzip(.)),
bucket = "s3://bucket/",
object = "file.zip") # and inside is a .sas7bdat file
but it's obviously not recognizing the .
但它显然不承认
.
. . I have not found any good info on reading a
.zip
file from s3
我没有找到任何关于从
s3
读取.zip
文件的好信息
I was trying to read the zip file from S3 and store it in the local Linux system.我试图从 S3 读取 zip 文件并将其存储在本地 Linux 系统中。 Maybe you can try this and then unzip the file and read.
也许你可以试试这个,然后解压缩文件并阅读。
library("aws.s3")
save_object("s3://mybucket/input/test.zip", file = "/home/test.zip", bucket = "mybucket")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.