首页 > 解决方案 > R闪亮的应用程序:无法标准化`addResourcePath`中的路径

问题描述

当我尝试运行我的 .Rmd 文档时,出现错误:

创建的输出:/tmp/RtmpIJCtdZ/file443d7655998c.html 警告:值错误[[3L]]:无法规范化路径addResourcePath,带参数:prefix='mathjax-local';directoryPath='/usr/lib/rstudio-server/resources/mathjax-26' 122:停止 121:值 [[3L]] 120:tryCatchOne 119:tryCatchList 118:tryCatch 117:shiny::addResourcePath 116:shinyHTML_with_deps 115:99: doc 98: shiny::renderUI 97: func 84: origRenderFunc 83: output$ reactivedoc 3: 1: rmarkdown::run

我已尝试更新所有软件包并运行,但仍然无法正常工作。

标签: rshiny

解决方案


使用它在使用 renv() 创建的环境是解决方案。看起来问题出在更新的软件包上。


推荐阅读