R: problem with mobile application