简体   繁体   English

Shinyapps.io : 包未加载

[英]Shinyapps.io : packages are not loaded

I wrote a Shiny App with R Shiny, I created an account on Shinyapps.io and every step worked with rsconnect , and rsconnect::deployApp('/path/to/my/app') open a new window where my app is supposed to be displayed.我用 R Shiny 写了一个 Shiny 应用程序,我在 Shinyapps.io 上创建了一个帐户,每一步都使用rsconnect ,然后rsconnect::deployApp('/path/to/my/app')打开一个新窗口,我的应用程序应该在那里要显示。

The problem is that shinyapps cannot load the packages I used in my code.问题是 Shinyapps 无法加载我在代码中使用的包。 The error message is :错误信息是:

An error has occurred发生了错误

The application failed to start (exited with code 1).应用程序无法启动(以代码 1 退出)。

Le chargement a nécessité le package : readxl Lechargement a necessité le package : readxl

Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :库中的警告(包,lib.loc = lib.loc,character.only = TRUE,logical.return = TRUE,:

aucun package nommé 'readxl' n'est trouvé aucun package nommé 'readxl' n'est trouvé

(I just put the warning for one package but there's the same for every one of them) (我只是对一个包裹发出警告,但每个包裹都相同)

What should I do ?我该怎么办 ?

I finally found my mistake : I had called all of my packages like library("readxl") instead of library(readxl) (without quotation marks) in both app.R (where I write the shiny app) and data.R (where I do all my data stuff)我终于找到了我的错误:我曾呼吁所有我的包像library("readxl")而不是library(readxl)在两个app.R(其中我写的有光泽的应用程序)和data.R(不带引号)(其中我做我所有的数据工作)

I removed the quotation marks and it works now我删除了引号,现在可以使用了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM