Re: [R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-09 Thread Eric Berger
Hi Christofer, A few comments. 1. Your experiment seems to show (I hope) that the issue may not be a shiny issue. If that is the case you can try to do things in a simpler setting, such as a (non-shiny) R session, say from the shell. i.e. start an interactive R session and enter the load

Re: [R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-09 Thread Christofer Bogaso
Hi Eric, thanks for your further pointer. I have put a line with load() function just as an illustration of a bigger project of mine, which appears failing due to load() function issue. If I comment out that line my shiny app is working correctly locally and globally. otherwise, locally my shiny

Re: [R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-09 Thread Eric Berger
Hi Christofer, The shiny code you have written does not depend on loading the Dat.RData file. I commented out that line and ran your shiny app on my machine and it works fine. What happens if you comment out (or remove) the line load("/home/ubuntu/Dat.RData) Does your shiny app still fail? If

Re: [R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-08 Thread Christofer Bogaso
Thanks Eric for your pointer. However I just altered the argument of load() function a little bit to get that loaded. Below is the line what I tried. ubuntu@ip-172-31-23-148:~$ R R version 3.4.2 (2017-09-28) -- "Short Summer" Copyright (C) 2017 The R Foundation for Statistical Computing Platfo

Re: [R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-07 Thread Eric Berger
Hi Christofer, The directory /srv/shiny-server would normally be owned by the root user. Your options would seem to be to either (1) bring up the R session as root (dangerous) or (2) try copying the file to your local directory and read it from there (if allowed). e.g. from the Unix shell: > cd ~

[R] load() failed to load .Rdata file in AWS-Ububtu

2017-10-07 Thread Christofer Bogaso
Hi again, I hope this is the right place to post my question on running R within Ubuntu, however if not, any pointer on right distribution list will be helpful. I am currently using R in Ubuntu which is hosted in Amazon - AWS. I have a .Rdata file in AWS which I am trying to load in R. Used foll