TL;博士
当本地软件包不在我的win库中时,如何从我正在运行的闪亮应用程序中引用/使用它呢?
错误:
Warning: Error in : there is no package called 'humblFinance'
伪码:
output$p1 <- renderPlot({
future::future({
out <- myPackage::collect_price(symbol = input$tickerInput,
range = "1m")
input <- input
out <- out %>%
ggplot2::ggplot(ggplot2::aes(x = date, y = fclose)) +
ggplot2::geom_line(size = 1) +
ggplot2::labs(title = glue::glue("{input$tickerInput} Price Chart"), y = "Closing Price", x = "")
return(out)
}) %...>% (
function(result){ return(result) }
) %...!% (
function(error){ warning(error) }
)
})当我试图在mypackage::myfun()中使用函数future({}) statement时,我会收到下面的错误。我的shinyApp是用golem和brochure基础设施创建的,所以我不知道在哪里引用这个包?我尝试过在语句中安装软件包,但似乎不起作用。我是否应该将将来的调用指向项目根目录中的tarball?
loadNamespace()没有workattatchNamespace()没有workremotes::install_local()没有工作发布于 2022-09-27 05:06:22
你在这篇文章中试过答案吗:
这个解决方案对我没有用,但似乎对这篇文章的作者有效。
https://stackoverflow.com/questions/73775719
复制相似问题