Ask Your Question

mcm3's profile - activity

2018-03-27 16:54:45 +0200 received badge  Famous Question (source)
2017-10-17 17:57:44 +0200 received badge  Taxonomist
2015-02-28 10:35:45 +0200 received badge  Notable Question (source)
2014-10-03 02:58:03 +0200 received badge  Famous Question (source)
2013-10-07 20:02:50 +0200 received badge  Popular Question (source)
2013-07-20 11:53:52 +0200 received badge  Student (source)
2013-04-18 14:59:48 +0200 received badge  Notable Question (source)
2012-10-16 19:00:34 +0200 received badge  Popular Question (source)
2012-04-12 03:22:23 +0200 commented answer Add R package in Sage folder

OK the sage -f r did the job thanks.

2012-04-12 03:02:48 +0200 commented answer Add R package in Sage folder

OK after reinstalling using sage -f r this works for 1. sage -sh 2. sage - R 3. install.packages('orloca'). Thanks for all the help.

2012-04-11 16:57:37 +0200 commented answer Add R package in Sage folder

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

2012-04-11 16:55:07 +0200 commented answer Add R package in Sage folder

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

2012-04-11 16:53:28 +0200 commented answer Add R package in Sage folder

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.

2012-04-11 16:08:57 +0200 received badge  Editor (source)
2012-04-11 02:47:52 +0200 asked a question Add R package in Sage folder

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.

  1. Is it better to use the R in the Sage folder and add packages to that folder? If so how, as in Ubuntu everything goes to the main R installation.

  2. Or is there an easy way to just point RPy to the main R installation when using SAGE.

2012-04-11 02:37:09 +0200 received badge  Scholar (source)
2012-04-11 02:37:09 +0200 marked best answer Using Psycopg2 and other libraries in sage

try this at the terminal

$sage -sh
$easy_install 'python-module'

Edit: The command easy_install will download the module from internet and install it.

For eg. If you type easy_install asciitables you get the following output. Notice it goes to the websites http://pypi.python.org/simple/asciita... and http://cxc.harvard.edu/contrib/asciit... finds the latest version and installs it.

(sage subshell) galileo:~ shashank$ easy_install asciitable
Searching for asciitable
Reading http://pypi.python.org/simple/asciitable/
Reading http://cxc.harvard.edu/contrib/asciitable
Best match: asciitable 0.8.0
Downloading http://pypi.python.org/packages/source/a/asciitable/asciitable-0.8.0.zip#md5=27e42e69f8114e54724cd81ef1d0e88d
Processing asciitable-0.8.0.zip
Running asciitable-0.8.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vcITTN/asciitable-0.8.0/egg-dist-tmp-S2CmQN
zip_safe flag not set; analyzing archive contents...
asciitable.version: module references __file__
Adding asciitable 0.8.0 to easy-install.pth file

Installed /home/shashank/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/asciitable-0.8.0-py2.6.egg
Processing dependencies for asciitable
Finished processing dependencies for asciitable
SAGE_ROOT=/home/shashank/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux
2012-03-26 19:35:05 +0200 commented answer Using Psycopg2 and other libraries in sage

Also maybe this should be put in a wiki somewhere as I found this important but hard to track down.

2012-03-26 19:33:07 +0200 received badge  Supporter (source)
2012-03-26 19:33:03 +0200 commented answer Using Psycopg2 and other libraries in sage

ah my easy install is not going to the internet for some reason on asciitables but it does for simpy (I have no idea why). So that explains why it was not working for me. Thanks Matthew

2012-03-23 16:41:49 +0200 answered a question Using Psycopg2 and other libraries in sage

Could not get it to work. Maybe its me.

sage -sh (OK) easy_install 'python-module' (does not work)

I don't think I know exactly what to put or it just not the way to install. Say I have a module like asciiread located in home/la/asciitable/. In that file are folders and setup.py used to install. Is that were I should start e.g. "easy_install 'home/la/asciitable/setup.py'?

OR

is easy install in this case a way to link with my already install package.

so I put something like easy_install '/usr/local/lib/python2.6/dist-package/asciitables.py

Processing asciitables.py error: Couldn't find a setup script in /usr/local/lib/python2.6/dist-packages/atpy/asciitables.py

Hope this is clear.

Thanks

I already have asciiread install in my python

2012-03-22 02:20:21 +0200 asked a question Using Psycopg2 and other libraries in sage

Hi,

Seems like a simple question but have not found a good answer. Best way to use outside python libraries in SAGE in Ubuntu. Install in SAGE foulder if so (how?). Link in an IDE. I know how to do this in Pydev.

Thanks,

Matthew