fixed libs in ui.r and example.rmd

thanks again ramnath