"comparison (1) is possible only for atomic and list types"

Hello,
I'm trying to convert an R code to a shiny app. I use a scv to import the data.
But I get a problem in the next line:
fdesc <-tiie(datos = parswap,pilar=reactive(pila),inicio = reactive(ini),convencion = conv, indicadora = indi, plazopagos = ppf)

I get a: Warning: Error in ==: comparison (1) is possible only for atomic and list types
Error in reactive(pilar) == reactive(peri[d]) :
comparison (1) is possible only for atomic and list types

This is that part of the code:
contador<-0
contador<-reactive(contador)
peri<-c("3X1","13X1","52X1","130X1","156X1")
for(d in 1:length(peri)){
if(reactive(pilar)==reactive(peri[d])){
contador<-d
}
}

I don't know what should I do. This code perfectly works, but I'm getting errors in shiny :confused:
I'm knew in this tool. Actually I don't know if I have to convert to a reactive() variable pedi[d]. I just try to do something.
Help please.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.