I dont know the ins and outs of rms but the options(datadist='dd') is a code smell for relying on data in the global environment, which when you are working in shiny is typically avoided (and for good reason). I would hope theres a more sophisticated way to dodge these limitations bu...