PnetPathname {Peanut}R Documentation

Returns the path associated with a network.

Description

A Pnet is associated with a filename where it is stored. This value should get set when the network is read or written. Note that this will usually be the name of the network with a implementation file type.

Usage

PnetPathname(net)
PnetPathname(net) <- value

Arguments

net

A Pnet Bayesian network.

value

A character scalar giving the pathname for the network.

Value

The getter form returns a character vector of length 1. The setter form return the Pnet argument.

Author(s)

Russell Almond

See Also

Pnet

Examples

## Not run: 
library(PNetica) # Requires PNetica
sess <- NeticaSession()
startSession(sess)
curd <- getwd()
setwd(file.path(library(help="PNetica")$path, "testnets"))

PM <- ReadNetworks("miniPP-CM.dne", session=sess)
stopifnot(PnetPathname(PM)=="miniPP-CM.dne")
PnetPathname(PM) <- "StudentModel1.dne"
stopifnot(PnetPathname(PM)=="StudentModel1.dne")



stopSession(sess)
setwd(curd)

## End(Not run)

[Package Peanut version 0.4-1 Index]