-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Two things to mention:
Can not use the package
error info. is
loadNamespace() is failed on .onload()
when invoke dirname(this$RuntimeLib)
I watched the source codes FirstLib.R
if(!nchar(javahome)) { ## JAVA_HOME was not set explicitly
find.java <- function() {
for (root in c("HLM", "HCU"))
for(key in c("Software\\JavaSoft\\Java Runtime Environment",
"Software\\JavaSoft\\Java Development Kit")) {
hive <- try(utils::readRegistry(key, root, 2), silent=TRUE)
if (!inherits(hive, "try-error")) return(hive)
}
hive
}
hive <- find.java()
if (inherits(hive, "try-error"))
stop("JAVA_HOME cannot be determined from the Registry")
if (!length(hive$CurrentVersion))
stop("No CurrentVersion entry! Try re-installing Java and make sure R and Java have matching architectures.")
this <- hive[[hive$CurrentVersion]]
javahome <- this$JavaHome
paths <- dirname(this$RuntimeLib) # wrong on 64-bit
} else paths <- character()
if(is.null(javahome) || !length(javahome) || !nchar(javahome))
stop("JAVA_HOME is not set and could not be determined from the registry")
There is already an annotation # wrong on 64-bit
Is this a know bug?
Need a tutorial
Can you provides a immerse tutorial ?
from a good use example?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels