Hello!
I am running shiny with flexdashboard. There is no error message, but the following code does not work. It was supposed to generate inline output, but it didn't.
Unfortunately with the given information it isn't entirely clear what functions you are using etc. But I'll give it my best guess! I'm guessing the getModel() function looks for a model living somewhere. This makes me think it may be a directory problem.
There is this interesting thing that happens when working with an Rmd in that the working directory (wd) becomes the directory where your Rmd lives. So if you execute something in the console and your wd is home but your Rmd is in home/R or something the reference between the console and the code chunk will be different. Generally you can avoid that with something like the {here} package (https://github.com/jennybc/here_here).