Just a guess from my experience with IDEs, and specially with Rstudio, they don't do the implicit prints. So try using an explicit print. For example, print(omega(my.data))