|
If you do not have Hugin installed in the default location you will need to set the HUGINHOME environment variable before using the RHugin package. Also, you will need to modify the HUGINHOME variable in the installation instructions below.
RHugin has dependencies on the Bioconductor packages graph and Rgraphviz. Run the commands
source("http://bioconductor.org/biocLite.R")
biocLite(c("graph", "Rgraphviz"))
to install them.
Install RHugin using the install.packages function in R. The HUGINHOME environment variable must be set to the full path of the Hugin Decision Engine folder.
Sys.setenv(HUGINHOME = "/usr/local/hugin")
install.packages("RHugin", repos = "http://rhugin.r-forge.r-project.org")
Install RHugin using the install.packages function in R. The HUGINHOME environment variable must be set to the full path of the Hugin Decision Engine folder. In most cases typing Sys.setenv(HUGINHOME = "/Applications/HDE then pressing tab will give the correct path. The following commands install the package for Hugin Lite.
Sys.setenv(HUGINHOME = "/Applications/HDE7.7-x64-lite")
install.packages("RHugin", repos = "http://rhugin.r-forge.r-project.org", type = "source")
Note for Mac OS X: R 3.0.0 is now 64 bit only so RHugin will only work with a 64 bit version of the Hugin Decision Engine.
Binary packages are provided for Windows.
Download the package corresponding to your version of Hugin then use the "Install package(s) from local zip files..." item from the R Packages menu to install the package.