Can you call a function from an observer?


#1

can you call a function from an observer? I find that when I try to print the parameter passed to the function in the function that receives the parameter, it does not work in the RStudio EDI. However, the program prints to the R console. Is it possible that there is file corruption? It happened to me once when I started to get errors that I had not got before. I restarted R and RStudio, copied the application to a different file and everything worked fine again.

observe(btn,{
result <- filename(parameter)

}