Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Last active December 26, 2015 03:19
Show Gist options
  • Save ramnathv/7084851 to your computer and use it in GitHub Desktop.
Save ramnathv/7084851 to your computer and use it in GitHub Desktop.

I am trying to get an rCharts application working on OpenCPU. For testing purposes, I have pushed it to http://github.com/ramnathv/testapp1. When I try to access the application from github, I get the error message shown in the log. Here is what I am typing in my browser to access the application.

https://public.opencpu.org/ocpu/github/ramnathv/testapp1/www

Note that install_github("testapp1", "ramnathv") works for me, and I am on Mac OS 10.8.

The app is a tweak of the markdown app, to allow an rCharts viz to be displayed. To run the app locally, you can do

devtools::install_github('testapp1', 'ramnathv')
library(opencpu)
opencpu$browse('library/rCharts/www')

Note that testapp1 is just the dev branch of rCharts, and is placeholder for me to test the app before I pull it back into rCharts.

Package installation failed.
Installing github repo(s) testapp1/master from ramnathv
Downloading testapp1.zip from https://github.com/ramnathv/testapp1/archive/master.zip
Installing package from /tmp/ocpu-temp/RtmpYtQrVy/testapp1.zip
Installing rCharts
Installing dependencies for rCharts:
yaml
Installing package into '/tmp/ocpu-temp/githubdir4cc16783366e'
(as 'lib' is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/yaml_2.1.8.tar.gz'
Content type 'application/x-gzip' length 80236 bytes (78 Kb)
opened URL
==================================================
downloaded 78 Kb
* installing *source* package 'yaml' ...
** package 'yaml' successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c api.c -o api.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c dumper.c -o dumper.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c emitter.c -o emitter.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c implicit.c -o implicit.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c loader.c -o loader.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c parser.c -o parser.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c r-ext.c -o r-ext.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c reader.c -o reader.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c scanner.c -o scanner.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -DNDEBUG -fpic -O2 -pipe -g -c writer.c -o writer.o
gcc -std=gnu99 -shared -o yaml.so api.o dumper.o emitter.o implicit.o loader.o parser.o r-ext.o reader.o scanner.o writer.o -L/usr/lib/R/lib -lR
installing to /tmp/ocpu-temp/githubdir4cc16783366e/yaml/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (yaml)
The downloaded source packages are in
'/tmp/ocpu-temp/RtmpYtQrVy/downloaded_packages'
'/usr/lib/R/bin/R' --vanilla CMD INSTALL \
'/tmp/ocpu-temp/RtmpYtQrVy/testapp1-master' \
--library='/tmp/ocpu-temp/githubdir4cc16783366e' --with-keep.source \
--install-tests --library="/tmp/ocpu-temp/githubdir4cc16783366e"
* installing *source* package 'rCharts' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (rCharts)
In call:
github_load(gituser, gitrepo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment