Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.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
R GoogleSheets4:部署时Shinyio服务器中的身份验证错误?_R_Google Sheets_Shiny_Googlesheets4 - Fatal编程技术网

R GoogleSheets4:部署时Shinyio服务器中的身份验证错误?

R GoogleSheets4:部署时Shinyio服务器中的身份验证错误?,r,google-sheets,shiny,googlesheets4,R,Google Sheets,Shiny,Googlesheets4,以下是我的简单测试应用程序代码: library(shiny) library(shinydashboard) library(googlesheets4) library(googledrive) library(DT) drive_auth(email = "xxxx") shinyws1<-gs4_create("WS1") #table<-read_sheet("xxx") # Define UI for ap

以下是我的简单测试应用程序代码:

library(shiny)
library(shinydashboard)
library(googlesheets4)
library(googledrive)
library(DT)

drive_auth(email = "xxxx")

shinyws1<-gs4_create("WS1")
#table<-read_sheet("xxx")

# Define UI for application
ui <- fluidPage(
   
   # Application title
   titlePanel("Test App"),
   
   # Sidebar with a slider input for number of bins 
   sidebarLayout(
      sidebarPanel(
         numericInput("bins",
                     "Number of friends:",
                     min = 1,
                     max = 100,
                     value = 50),
         actionButton("submit","Submit",class="btn-success")
      ),
      
      # Show a plot of the generated distribution
      mainPanel(
         #blank so far
      )
   )
)


# Define server logic required to draw a histogram
server <- function(input, output) {
   
   #results<-reactive(input$bins)
  observeEvent(input$submit,{
    shinyws1 %>% sheet_append(as.data.frame(input$bins))
  }) 
  
   
}

# Run the application 
shinyApp(ui = ui, server = server)

库(闪亮)
图书馆(shinydashboard)
图书馆(谷歌地图4)
图书馆(谷歌硬盘)
图书馆(DT)
驱动器验证(电子邮件=“xxxx”)
发光体1
Error in value[[3L]](cond) : Can't get Google credentials.
Are you running googledrive in a non-interactive session? Consider:
  * `drive_deauth()` to prevent the attempt to get credentials.
  * Call `drive_auth()` directly with all necessary specifics.
  * Read more in: https://gargle.r-lib.org/articles/non-interactive-auth.html
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted