ggobi/cranvas — Issue #135: Cranvas load error on Mac Installation
Author: kilduffec
Created: 2011-10-30 16:40:45+00:00
State: open

I get the following error when trying to load cranvas on Mac. Compiling seems to go fine for everything else, but when it gets to cranvas itself, I receive a "could not find function 'properties'" error. I presume that means that I am missing a function 'properties' in a library that I do not have loaded properly.

* checking for file ‘/private/var/folders/Z3/Z3raDBdBHHiutBFQ7B9Ua++++TM/-Tmp-/RtmpRhBX8G/ggobi-cranvas-5719722/DESCRIPTION’ ... OK
* preparing ‘cranvas’:
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
* building ‘cranvas_0.7.5.tar.gz’

* installing *source* package ‘cranvas’ ...
** R
** data
** inst
** preparing package for lazy loading
Error in setRefClass("Scales_meta", fields = properties(list(color = "list", :
could not find function "properties"
Error : unable to load R code in package 'cranvas'
ERROR: lazy loading failed for package ‘cranvas’
* removing ‘/Library/Frameworks/R.framework/Versions/2.13/Resources/library/cranvas’
Warning message:
In install.packages(built_path, repos = NULL, type = "source") :
installation of package '/var/folders/Z3/Z3raDBdBHHiutBFQ7B9Ua++++TM/-Tmp-//RtmpRhBX8G/cranvas_0.7.5.tar.gz' had non-zero exit status

To load, I am using the code suggested by the cranvas wiki:

## use devtools to install other dependencies from GitHub
if (!require('devtools')) install.packages('devtools') # needs Curl for RCurl
library(devtools)
## it takes a few minutes to install qtbase, but you do not need to reinstall it every time
install_github('qtbase', 'ggobi'); install_github('qtpaint', 'ggobi')

## install dependencies from CRAN
install.packages(c('scales', 'tourr', 'objectSignals', 'maps'))

pkgs <- list(hadley = c('productplots', 'densityvis'), ggobi = c('plumbr', 'cranvas'))
for (repo in names(pkgs)) {
for (pkg in pkgs[[repo]]) install_github(pkg, repo)
}

I am running R 2.13.2 ... Can you help? Any suggestions?

Thanks ~ Ed K.