Annotation in rSMILE

The engine.
Post Reply
davidfdavis
Posts: 8
Joined: Mon Aug 27, 2018 2:06 pm

Annotation in rSMILE

Post by davidfdavis »

Is there a way to programmatically insert text as annotations using rSMILE? This is a good place for node textual definition that is available through my R code. Cutting and pasting would be tedious.
piotr [BayesFusion]
Site Admin
Posts: 69
Joined: Mon Nov 06, 2017 6:41 pm

Re: Annotation in rSMILE

Post by piotr [BayesFusion] »

rSMILE provides the setNodeDescription method. It allows you to associate any text with a selected node in the network.

Code: Select all

net$setNodeDescription("NodeId", "This text will be associated with node NodeId.")
You can get value by calling:

Code: Select all

desc <- net$getNodeDescription("NodeId")
davidfdavis
Posts: 8
Joined: Mon Aug 27, 2018 2:06 pm

Re: Annotation in rSMILE

Post by davidfdavis »

> BN$setNodeDescription("T1", "This text will be associated with node NodeId.")
Error in BN$setNodeDescription("T1", "This text will be associated with node NodeId.") :
RSmile error occured
SMILE Error Occured. Passed object is NULL
piotr [BayesFusion]
Site Admin
Posts: 69
Joined: Mon Nov 06, 2017 6:41 pm

Re: Annotation in rSMILE

Post by piotr [BayesFusion] »

Could you share rest of that code and version of R and rSMILE? This method should work seamlessly.
shooltz[BayesFusion]
Site Admin
Posts: 1469
Joined: Mon Nov 26, 2007 5:51 pm

Re: Annotation in rSMILE

Post by shooltz[BayesFusion] »

BTW, if you want to move this conversation into private space, email me or send me a forum PM.
Post Reply