WarehouseDirectory: Gets or sets the directory associated with an BNWarehouse

WarehouseDirectoryR Documentation

Gets or sets the directory associated with an BNWarehouse

Description

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.

Usage

WarehouseDirectory(warehouse)
WarehouseDirectory(warehouse) <- value

Arguments

warehouse

An object of type BNWarehouse.

value

A character scalar giving the new pathname for the net directory.

Value

A character string giving the path associated with a Warehouse.

Author(s)

Russell Almond

See Also

BNWarehouse, MakePnet.NeticaBN

Examples


sess <- NeticaSession()
startSession(sess)

netman1 <- read.csv(system.file("auxdata", "Mini-PP-Nets.csv", 
                                 package="Peanut"),
                    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)


ralmond/PNetica documentation built on Sept. 19, 2023, 8:27 a.m.