gpt4 book ai didi

r - 错误 : no library trees found in 'lib.loc' when deploying Shiny App

转载 作者:行者123 更新时间:2023-12-04 03:11:30 24 4
gpt4 key购买 nike

当我尝试使用 https://www.shinyapps.io/ 部署我的应用程序时出现此错误.

错误:在“lib.loc”中找不到库树

知道为什么吗?我发现了几个关于它的线程,但我对解释不是很清楚。

这些是我的包裹的位置:

library("plyr", lib.loc="C:/Users/Ktanizar/Documents/R/win-library/3.4")

library("cluster", lib.loc="C:/Program Files/R/R-3.4.1/library")

library("xlsx", lib.loc="C:/Users/Ktanizar/Documents/R/win-library/3.4")

library("seriation", lib.loc="C:/Users/Ktanizar/Documents/R/win-library/3.4")

library("data.tree", lib.loc="C:/Users/Ktanizar/Documents/R/win-library/3.4")

library("DT", lib.loc="C:/Users/Ktanizar/Documents/R/win-library/3.4")

library("shinythemes", lib.loc="C:/Users/Ktanizar/Documents/R/win-library/3.4")

library("clipr", lib.loc="C:/Users/Ktanizar/Documents/R/win-library/3.4")

这是我运行 .libPaths() 时的结果[1]“C:/Users/KTanizar/Documents/R/win-library/3.4” “C:/Program Files/R/R-3.4.1/library”

这里是rsconnect的路径

rsconnect::deployApp('C:/Users/Ketty Noonan/Desktop/Innovation Projects/0 Market Structure/5 Innovation/1 R scripts and notes/R_Shiny/2 Deploy')

非常感谢任何想法。

最佳答案

现在可以使用以下代码:

if(!require("plyr"))
install.packages("plyr")
if(!require("cluster"))
install.packages("cluster")
if(!require("xlsx"))
install.packages("xlsx")
if(!require("seriation"))
install.packages("seriation")
if(!require("data.tree"))
install.packages("data.tree")
if(!require("DT"))
install.packages("DT")
if(!require("shinythemes"))
install.packages("shinythemes")
if(!require("clipr"))
install.packages("clipr")

当我更改以下代码时

fluidPage(theme = "bootstrap.css",

来自以下

fluidPage(theme = shinytheme("spacelab"),

希望这对某人有所帮助,谢谢你,Jarko。

关于r - 错误 : no library trees found in 'lib.loc' when deploying Shiny App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44944501/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com