This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## インストールがまだの場合は下記のコメントを外してそれぞれインストール | |
#install.packages("rvest", dependencies=T) | |
#install.packages("dplyr", dependencies=T) | |
#install.packages("jsonlite", dependencies=T) | |
#install.packages("stringr", dependencies=T) | |
#install.packages("wle", dependencies=T) | |
# ライブラリの読み込み | |
library(dplyr) | |
library(jsonlite) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## インストールがまだの場合は下記のコメントを外してそれぞれインストール | |
#install.packages("rvest", dependencies=T) | |
#install.packages("dplyr", dependencies=T) | |
#install.packages("jsonlite", dependencies=T) | |
#install.packages("stringr", dependencies=T) | |
#install.packages("magrittr", dependencies=T) | |
# ライブラリの読み込み | |
library(rvest) | |
library(dplyr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
options(shiny.port = 1221) | |
options(googleAuthR.webapp.client_id = "先程作成したクライアントIDをコピペ") | |
options(googleAuthR.webapp.client_secret = "先程作成したクライアントシークレットをコピペ") | |
options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/analytics.readonly")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
navbarPage("疑似query explorer", | |
tabPanel("Google アカウント連携", tabName = "setup", icon = icon("cogs"), | |
h1("Setup"), | |
googleAuthUI("Google_login"), | |
authDropdownUI("viewId_select") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
library(gridExtra) | |
library(Rmisc) | |
navbarPage("疑似query explorer", | |
tabPanel("Google アカウント連携", tabName = "setup", icon = icon("cogs"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
library(gridExtra) | |
library(Rmisc) | |
options(shiny.port = 1221) | |
options(googleAuthR.webapp.client_id = "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(googleAuthR) | |
library(googleAnalyticsR) | |
library(listviewer) | |
library(ggplot2) | |
library(gridExtra) | |
library(Rmisc) | |
library(dplyr) | |
library(ReporteRs) | |
library(rJava) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var token = "XXXXXXXXXXXXXXX";//Slackで生成されたTokenを貼り付ける | |
function doPost(e) { | |
if (token != e.parameter.token) { | |
return | |
} | |
var text = e.parameter.text; | |
var textForSlack = getAdsenseData(text); | |
var res = {"response_type": "in_channel", "text": textForSlack}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var token = "XXXXXXX";//Slackで生成されたTokenを貼り付ける | |
function doPost(e) { | |
if (token != e.parameter.token) { | |
return | |
} | |
var text = e.parameter.text; | |
var textForSlack = getAnalyticsData(text); | |
var res = {"response_type": "in_channel", "text": textForSlack}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
shinyServer(function(input, output) { | |
output$distPlot <- renderPlot({ | |
x <- iris[, input$numericInputData] | |
bins <- seq(min(x), max(x), length.out = input$sliderInputData + 1) | |
hist(x, breaks = bins, col = 'darkgray', border = 'white') |
OlderNewer