method 1 (a) using .Rdata to store the data and call shiny.