you should debug your main function, i.e. observe what values are passed in via the input$ params, and understand how they behave in your function.
you should debug your main function, i.e. observe what values are passed in via the input$ params, and understand how they behave in your function.