setClass(Class="CustomClass",
representation = representation(
id = "character",
component1 = "shiny.tag",
component2 = "shiny.tag"
)
)Warning message:
undefined slot classes in definition of "CustomClass": component1(class "shiny.tag"), component2(class "shiny.tag")> getClassDef('shiny.tag')NULL--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/e07f6297-d9f1-458a-a323-3ad1c57e0e8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
setClass(Class="CustomClass", representation = representation( id = "character", component1 = "list", component2 = "list" ))
c = new(Class="CustomClass", id = "1", component1 = selectInput("id1","value :",1:5), component2 = selectInput("id2","value :",6:10) )Error in validObject(.Object) : invalid class “CustomClass” object: 1: invalid object for slot "component1" in class "CustomClass": got class "shiny.tag", should be or extend class "list"invalid class “CustomClass” object: 2: invalid object for slot "component2" in class "CustomClass": got class "shiny.tag", should be or extend class "list"Hi,
Could you the setOldClass function? EG.
setOldClass('shiny.tag')
setClass(
Class="CustomClass",
representation = representation(
id = "character",
component1 = "shiny.tag",
component2 = "shiny.tag"
)
)
x=new(Class="CustomClass", id = "1", component1 = selectInput("id1","value :",1:5), component2 = selectInput("id2","value :",6:10))
Cheers,
Jeff
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/7646764e-68a1-457f-bc45-d69541376d38%40googlegroups.com.