| Hi, Simple question (I think) but have not found anything. I want to add package in R like GGPLOT2 and use it in IDE/command line for sage (not note book). I am using Ubuntu Lucid and have r working on its own. So.
|
| Not sure why Niles thinks you need to do this... this was built in early on by the Sage-R interface. I've even done this live in talks I've given. Naturally, make sure you have an internet connection and that the package you want is supported by the version of R in Sage. 1 |
| You could switch to a shell with the same environment variable settings that Sage uses. http://ask.sagemath.org/question/1252/using-psycopg2-and-other-libraries-in-sage |
| Or you could do and you will probably get some popup or some menu about choosing a CRAN mirror. This almost works but has not installed anything correctly yet. I have tried orloca, ggplot2, and maptools so far. I will put a big list of output below just FYI. Systems info: Sage 4.7, ubuntu lucid. Other aspects of SAGE are working fine for me. mcm3 (Apr 11 '12)This is some output FYI. matthew@matthew-laptop:~$ sage -R Error in if (file.info(codeFile)["size"] == file.info(loaderFile)["size"]) warning("package seems to be using lazy loading already") else { : missing value where TRUE/FALSE needed ERROR: lazy loading failed for package ‘proto’ * removing ‘/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/R/library/proto’ ERROR: dependency ‘plyr’ is not available for package ‘stringr’ * removing ‘/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/R/library/stringr’ ERROR: dependency ‘colorspace’ is not available for package ‘munsell’ * removing ‘/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/R/library/munsell’ ERROR: dependency ‘digest’ is not available for package ‘memoise’ * removing ‘/opt/sage-4.8-li mcm3 (Apr 11 '12)for maptools error looks like thismake: /home/wstein/build/sage-4.8/local/lib/R/share/make/shlib.mk: No such file or directory make: * No rule to make target `/home/wstein/build/sage-4.8/local/lib/R/share/make/shlib.mk'. Stop. ERROR: compilation failed for package ‘sp’ * removing ‘/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/R/library/sp’ ERROR: dependency ‘sp’ is not available for package ‘maptools’ * removing ‘/opt/sage-4.8-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/R/library/maptools’ The downloaded packages are in ‘/tmp/RtmpzrpYpN/downloaded_packages’ Warning messages: 1: In install.packages("maptools") : installation of package ‘sp’ had non-zero exit status 2: In install.packages("maptools") : installation of package ‘maptools’ had non-zero exit stat mcm3 (Apr 11 '12)Hmm, that is puzzling. What happens if you use the "within Sage" option? I think that at least part of the problem is that there are some "hardcoded" parts - see the |
Asked: Apr 11 '12
Seen: 300 times
Last updated: Apr 11 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.