PnetPathname | 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
Pnet
## Not run:
library(PNetica) # Requires PNetica
sess <- NeticaSession()
startSession(sess)
curd <- setwd(system.file("testnets", package="PNetica"))
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.