View source: R/solution_modifications.R
replaceVariable | R Documentation |
Notice: there is no check, whether the ids exist. Variables are replaced
literarilly when they are the only content of an attribute or element content.
In other attributes and element contents ${oldid}
will be
replaced by ${newid}
replaceVariable(sol, oldid, newid)
sol |
solution object |
oldid |
id of variable to be replaced |
newid |
id of the replacing variable |
Notice that the id of variables from resources, SimComponents etc. should be prefixed by the enclosing resource's, SimComponent's etc. id.
modified solution object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.