Omics - Hunter

R上云也很容易-cloudyr项目

cloudyr项目目的旨在建立起R语言与云交互的接口,目前实现了aws大部分交互功能。像Google Cloud Services和Microsoft Azure也被列入计划,是一个值得期待的计划。


# 安装cloudyr生态下的R包,首先先添加源,方式如下:
if (!require("drat")) {
    install.packages("drat")
}
drat::addRepo("cloudyr", "http://cloudyr.github.io/drat")
install.packages("XXXXX")
# 每次安装cloudyr包,都需要执行上面的操作,为了方便可以添加
# drat::addRepo("cloudyr", "http://cloudyr.github.io/drat") 到
# .Rprofile或者Rprofile.site文件中

下面以aws.s3为例:


# 需要提前配置aws认证
library("aws.s3")

# 配置Key
Sys.setenv("AWS_ACCESS_KEY_ID" = "mykey",
           "AWS_SECRET_ACCESS_KEY" = "mysecretkey")

# 查看S3仓库列表
bucketlist()

# 获取某个具体的仓库
get_bucket(bucket = '1000genomes')

# 保存文件至本地
save_object("mtcars.Rdata", file = "mtcars.Rdata", bucket = "my_bucket")

# 上传文件到S3
put_object(file = "mtcars.Rdata", object = "mtcars2.Rdata", bucket = "my_bucket")

基本上和官方boto3类似,实现了大部分的接口,虽然有小部分功能还待完善,但是总体来说是一个好的开始。

cloudyr生态列表如下:

CategoryPackageServiceAvailable From dratOn CRAN
BundleawspackAll Amazon Web ServicesYes
CRAN
Storageaws.s3Amazon Simple Storage ServiceYes
CRAN
 aws.efsAmazon Elastic File SystemYes
CRAN
 aws.glacierAmazon GlacierYes
CRAN
 googleCloudStorageRGoogle Cloud StorageYes
CRAN
 rdatastoreGoogle Data StoreNo
CRAN
 imguRimgurYes
CRAN
 rcribdscribdYes
CRAN
 AzureStorAzure Storage (file, blob and ADLSgen2)Yes
CRAN
 AzureQstorAzure Queue StorageYes
CRAN
Databases/Data storesbigQueryRGoogle BigQueryYes
CRAN
 AzureKustoAzure Data Explorer (aka Kusto)Yes
CRAN
 AzureTableStorAzure Table StorageYes
CRAN
Infrastructureaws.sesAmazon Simple Email ServiceYes
CRAN
 aws.snsAmazon Simple Notification ServiceYes
CRAN
 aws.sqsAmazon Simple Queue ServiceYes
CRAN
 cloudcidrsTools to Obtain and Work with Cloud Provider CIDR BlocksYes
CRAN
 AzureRMRAzure Resource ManagerYes
CRAN
 AzureGraphMicrosoft GraphYes
CRAN
Computingaws.ec2Amazon EC2Yes
CRAN
 aws.ec2metadataAccessEC2 Instance MetadataYes
CRAN
 aws.lambdaAmazon LambdaYes
CRAN
 googleComputeEngineRR Interface with Google Compute EngineYes
CRAN
 rmoteServe Graphics over HTTP from Remote ServerYes
CRAN
 AzureVMAzure Virtual MachinesYes
CRAN
 AzureVMmetadataAccessAzure VM Instance MetadataYes
CRAN
 AzureContainersContainers in Azure:ACI,ACR,AKSYes
CRAN
Informationaws.alexaAmazon AlexaYes
CRAN
Administrationaws.iamAmazon Identity and Access ManagementYes
CRAN
 aws.cloudtrailAmazon CloudtrailYes
CRAN
 aws.cloudwatchAmazon CloudwatchYes
CRAN
 aws.kmsAmazon Key Management Service (KMS)Yes
CRAN
 aws.signatureAWS API Request SignaturesYes
CRAN
 AzureAuthAzure Active Directory AuthenticationYes
CRAN
 AzureKeyVaultAzure Key VaultYes
CRAN
Machine Learning as a ServiceRoogleVisionGoogle VisionNo
CRAN
 aws.comprehendAWS ComprehendYes
CRAN
 aws.pollyAWS PollyYes
CRAN
 aws.transcribeAWS PollyYes
CRAN
 aws.translateAWS PollyYes
CRAN
 AzureCognitiveBasic interface toAzure Cognitive ServicesYes
CRAN
 AzureVisionAzureComputer Vision andCustom VisionYes
CRAN
CrowdsourcingMTurkRAmazon Mechanical TurkYes
CRAN
 MTurkRGUIGUI for MTurkRYes
CRAN
 crowdflowerCrowdflowerNo
CRAN
 microworkersMicroworkersNo
CRAN
Web SurveyslimerLimeSurveyYes
CRAN
Package DevelopmentappveyorAppveyor API ClientNo
CRAN
 circleciCircle-CI API ClientYes
CRAN
 aws.codeAmazon CodeCommitYes
CRAN

参考资料:

1.https://cloudyr.github.io/


作者:陈浩


版权:本文版权归作者所有


免责声明:本文中使用的部分图片来自于网络或者参考资料,如有侵权,请联系博主:chenhao__@__evvail.com(发件请删除下划线)进行删除


转载注意:除非特别声明,本站点内容均为作者原创文章,转载须以链接形式标明本文链接


本文链接:https://evvail.com/2020/11/10/1842.html

2 评论

  1. 你做这个网站是分享还是赚钱 ? 何必不让人复制呢? 现在图片识字技术已经很快了. 你要不然就做一个获取源代码的链接 表明单价 我相信大家觉得有用会付钱的. 这个和我们去买谱子一样. 你可以展示部分内容,然后剩下的全文浏览要单独收费

    • 陈浩

      2020/11/24 在 23:58

      你好,本站所有内容免费分享!限制复制的目的很简单,手动练习代码是学习的基础,希望浏览本站的所有读者都能动手操作有所收获,不是简单的copy+paste。如果你不喜欢本站的模式,可以将鼠标移动至右上角,点击x,谢谢!

发表回复

如果你有什么好的建议或者疑问请给我留言,谢谢!

Captcha Code