安装包时 R 出错:闪亮或 java_home 有问题?是因为opensteetmap吗?
error in R while installing packages: problems with shiny or java_home? is it due to opensteetmap?
不幸的是,我是 R 的新手,但我需要它来打开一个应该是图形用户界面的特定文件。
源命令后:
source("D:\R\win-library\3.5\muxViz-master\muxVizGUI.R")
我遇到了这个错误:
"Installing package into ‘D:/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning: package ‘shiny’ is in use and will not be installed
Carico il pacchetto richiesto: OpenStreetMap
Error: package or namespace load failed for ‘OpenStreetMap’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Installing package into ‘D:/R/win-library/3.5’
(as ‘lib’ is unspecified)
provo con l'URL 'https://cran.stat.unipd.it/bin/windows/contrib/3.5/OpenStreetMap_0.3.3.zip'
Content type 'application/zip' length 2264648 bytes (2.2 MB)
downloaded 2.2 MB
package ‘OpenStreetMap’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Camla\AppData\Local\Temp\RtmpE9NQB2\downloaded_packages
Error in shinyAppDir(x) : App dir must contain either app.R or server.R.".
本目录内容来自http://github.com/manlius/muxViz.
请帮忙。
muxVizGUI.R
的最后一行是runApp(getwd())
。它希望您的工作目录与 ui.R
和 server.R
文件所在的目录相同。您应该在获取文件之前更改到该目录:
setwd("D:\R\win-library\3.5\muxViz-master")
source("muxVizGUI.R")
不幸的是,我是 R 的新手,但我需要它来打开一个应该是图形用户界面的特定文件。 源命令后:
source("D:\R\win-library\3.5\muxViz-master\muxVizGUI.R")
我遇到了这个错误:
"Installing package into ‘D:/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning: package ‘shiny’ is in use and will not be installed
Carico il pacchetto richiesto: OpenStreetMap
Error: package or namespace load failed for ‘OpenStreetMap’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Installing package into ‘D:/R/win-library/3.5’
(as ‘lib’ is unspecified)
provo con l'URL 'https://cran.stat.unipd.it/bin/windows/contrib/3.5/OpenStreetMap_0.3.3.zip'
Content type 'application/zip' length 2264648 bytes (2.2 MB)
downloaded 2.2 MB
package ‘OpenStreetMap’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Camla\AppData\Local\Temp\RtmpE9NQB2\downloaded_packages
Error in shinyAppDir(x) : App dir must contain either app.R or server.R.".
本目录内容来自http://github.com/manlius/muxViz.
请帮忙。
muxVizGUI.R
的最后一行是runApp(getwd())
。它希望您的工作目录与 ui.R
和 server.R
文件所在的目录相同。您应该在获取文件之前更改到该目录:
setwd("D:\R\win-library\3.5\muxViz-master")
source("muxVizGUI.R")