[英]RStudio shiny runApp fails in working directory
I have a folder of R Projects called "R Projects". 我有一个名为“R Projects”的R Projects文件夹。 R Projects is my default RStudio working directory.
R Projects是我默认的RStudio工作目录。 I created the initial shiny tutorial app App-1 in a project folder called App-1 under R Projects.
我在R Projects下的一个名为App-1的项目文件夹中创建了最初的闪亮教程app App-1。
When I attempt to run App-1; 当我尝试运行App-1时; runApp("App-1") from the App-1 project I get the error message:
来自App-1项目的runApp(“App-1”)我收到错误消息:
Error in shinyAppDir(x) : No Shiny application exists at the path "App-1"
When I modify runApp: runApp("App-1", appDir = getwd()) it throws the error: 当我修改runApp:runApp(“App-1”,appDir = getwd())时,它会抛出错误:
Listening on domain socket App-1
Error in startPipeServer(port, mask, handlerManager$createHttpuvApp()) :
Failed to create server
However when I close the App-1 project and run App-1 from the default directory; 但是当我关闭App-1项目并从默认目录运行App-1时; Project (None), App-1 runs as intended as a shiny app.
项目(无),App-1像闪亮的应用程序一样运行。
I'm sure this is probably a trivial problem. 我敢肯定这可能是一个微不足道的问题。 Any assistance appreciated.
任何协助赞赏。
Man, I'm an idiot. 伙计,我是个白痴。 To run a shiny app in the app's directory merely enter:
要在应用程序目录中运行闪亮的应用程序,只需输入:
runApp()
in the console without any arguments. 控制台中的
runApp()
没有任何参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.