PnetPathname {Peanut} | R Documentation |
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.
PnetPathname(net) PnetPathname(net) <- value
net |
A |
value |
A character scalar giving the pathname for the network. |
The getter form returns a character vector of length 1. The setter
form return the Pnet
argument.
Russell Almond
## 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") DeleteNetwork(PM) stopSession(sess) setwd(curd) ## End(Not run)