updated server.R and test.Rmd