WarehouseDirectory {PNetica} | R Documentation |
If a network is not available, a BNWarehouse
will look
in the specified directory to find the .dne
or .neta
files associated with the Bayesian networks.
WarehouseDirectory(warehouse) WarehouseDirectory(warehouse) <- value
warehouse |
An object of type |
value |
A character scalar giving the new pathname for the net directory. |
A character string giving the path associated with a Warehouse.
Russell Almond
BNWarehouse
, MakePnet.NeticaBN
sess <- NeticaSession() startSession(sess) netman1 <- read.csv(paste(library(help="Peanut")$path, "auxdata", "Mini-PP-Nets.csv", sep=.Platform$file.sep), row.names=1, stringsAsFactors=FALSE) Nethouse <- BNWarehouse(manifest=netman1,session=sess,key="Name") stopifnot(WarehouseDirectory(Nethouse)==".") ## Set up to use a temporary directory (all networks will be built fresh) td <- tempdir() WarehouseDirectory(Nethouse) <- td stopifnot(WarehouseDirectory(Nethouse)==td)