Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 红移到R_Amazon Web Services_Shiny - Fatal编程技术网

Amazon web services 红移到R

Amazon web services 红移到R,amazon-web-services,shiny,Amazon Web Services,Shiny,在R或其他地方是否存在可以将AWS红移群集连接到R应用程序的现有软件包?我正在尝试使用Shiny构建一个交互式仪表板,数据源主要是Amazon Redshift或S3。我们也欢迎任何可行的替代方案或建议。我过去使用RJDBC和RPostgreSQL进行过连接,两者都工作得很好 请记住,Shinyapps.io上不支持ODBC和JDBC红移驱动程序(因为Shinyapps.io是在Ubuntu上构建的)-因此,RPostgreSQL可能是最好的选择 在或中很容易获得一个工作连接。我正在使用R-sh

在R或其他地方是否存在可以将AWS红移群集连接到R应用程序的现有软件包?我正在尝试使用Shiny构建一个交互式仪表板,数据源主要是Amazon Redshift或S3。我们也欢迎任何可行的替代方案或建议。

我过去使用RJDBC和RPostgreSQL进行过连接,两者都工作得很好

请记住,Shinyapps.io上不支持ODBC和JDBC红移驱动程序(因为Shinyapps.io是在Ubuntu上构建的)-因此,RPostgreSQL可能是最好的选择


在或中很容易获得一个工作连接。

我正在使用R-shinny和redshift,结果非常好。 首先,您必须安装

library(RPostgreSQL)
library(shinydashboard) #just if you want to use nice dashboards

 drv <- dbDriver("PostgreSQL")
 conn <- dbConnect(drv, host="blabla.eu-west-1.redshift.amazonaws.com", 
 port="5439", dbname="xx,  user="aaaaa",  password="xxxxx")
 conn #run you connection
 test <-data.frame( dbGetQuery(conn, "select * from youtbalename"))
库(RPostgreSQL)
图书馆(shinydashboard)#如果你想使用漂亮的仪表盘

drv我知道这是一篇老文章,但我想提及RPostgres

与RPostgreSQL不同,RPostgres支持SSL和参数化。另外,您不必下载像RJDBC这样的附加驱动程序

更多信息请点击此处:

您检查过这个吗