Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Thanks for updating your question with some example code. I cannot completely replicate your circumstances because I presently don't have immediate access to Amazon EC2, and I don't know the specific type of instance you are using. But here a couple of suggestions for de-bugging your issue, which I have a hunch is being caused by a missing package.</p> <p><strong>1. Try to install the offending packages via your R script</strong></p> <p>At the very beginning of your R script, before you try to load any packages, insert the following:</p> <pre><code>install.packages(c("XLConnect", "rJava")) </code></pre> <p>If your instance includes a specified CRAN mirror (essentially, the online repository where R will first look to download the package source code from), this <em>should</em> install the packages in the same repo where your other packages are kept on your server. Then, either <code>library</code> or <code>require</code> should load your packages. </p> <p>(sidenote: <code>rJava</code> is actually a dependency of <code>XLConnect</code>, so it will automatically load anyway if you only specify <code>library(XLConnect)</code>)</p> <p><strong>2. If the above does not work, try installing the packages via the command line</strong></p> <p>This is essentially what @Ben was suggesting with his comment. Alternatively, see perhaps <a href="https://askubuntu.com/questions/160499/how-can-i-install-rjags-on-ubuntu-ami-on-ec2">this link</a>, which deals with a similar problem with a different package. If you can, in terminal on the server, I would try entering the following three commands:</p> <pre><code>sudo add-apt-repository ppa:marutter/rrutter sudo apt-get update sudo apt-get install r-cran-XLConnect </code></pre> <p>In my experience this has been a good go-to repo when I can't seem to find a package I need to install. But you may or may not have permission to install packages on your server instance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload