Annotation in rSMILE
-
- Posts: 8
- Joined: Mon Aug 27, 2018 2:06 pm
Annotation in rSMILE
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.
-
- Site Admin
- Posts: 69
- Joined: Mon Nov 06, 2017 6:41 pm
Re: Annotation in rSMILE
rSMILE provides the setNodeDescription method. It allows you to associate any text with a selected node in the network.
You can get value by calling:
Code: Select all
net$setNodeDescription("NodeId", "This text will be associated with node NodeId.")
Code: Select all
desc <- net$getNodeDescription("NodeId")
-
- Posts: 8
- Joined: Mon Aug 27, 2018 2:06 pm
Re: Annotation in rSMILE
> 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
Error in BN$setNodeDescription("T1", "This text will be associated with node NodeId.") :
RSmile error occured
SMILE Error Occured. Passed object is NULL
-
- Site Admin
- Posts: 69
- Joined: Mon Nov 06, 2017 6:41 pm
Re: Annotation in rSMILE
Could you share rest of that code and version of R and rSMILE? This method should work seamlessly.
-
- Site Admin
- Posts: 1469
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Annotation in rSMILE
BTW, if you want to move this conversation into private space, email me or send me a forum PM.