#6532: R packages installation problem
----------------------+-----------------------------------------------------
 Reporter:  wdj       |       Owner:  mabshoff  
     Type:  defect    |      Status:  new       
 Priority:  major     |   Milestone:  sage-4.1.1
Component:  packages  |    Keywords:            
 Reviewer:            |      Author:            
   Merged:            |  
----------------------+-----------------------------------------------------
 This was reported by Aleksey G:

 {{{
 I tried to install package "cluster" for R and got this:

 ----------------------------------------------------------------------
 | Sage Version 4.0.2, Release Date: 2009-06-18                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: r.install_package("cluster")
 Error: object "sage1" not found
 }}}
 Minh N replied that the (positively reviewed) patch #6379
 should be applied but "after applying that
 patch, installing cluster, restart Sage, and import the library
 cluster, Sage still doesn't recognize the cluster package. For
 example, here is what I did under Sage 4.1:"

 {{{
 sage: hg_sage.apply("http://www.sagetrac.org/sage_trac/raw-
 attachment/ticket/6379/trac_6379-Rdoctest.patch")
 <applying the above patch>
 sage: exit
 Exiting SAGE (CPU time 0m0.09s, Wall time 0m18.86s).
 [mv...@sage sage-4.1-sage.math.washington.edu-x86_64-Linux]$ ./sage -br
 main
 <now install cluster>
 sage: r.install_packages("cluster")
 <now restart Sage>
 sage: exit
 Exiting SAGE (CPU time 0m0.50s, Wall time 0m22.15s).
 [mv...@sage sage-4.1-sage.math.washington.edu-x86_64-Linux]$ ./sage -br
 main
 <now import the package cluster>
 sage: r.library("cluster")
 ---------------------------------------------------------------------------
 ImportError                               Traceback (most recent call
 last)

 
/home/mvngu/.sage/temp/sage.math.washington.edu/16587/_home_mvngu__sage_init_sage_0.py
 in <module>()

 
/scratch/mvngu/sage-4.1-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/interfaces/r.pyc
 in library(self, library_name)
    557             # not all warnings (e.g. "closing unused
 connection 3") are fatal

    558             if 'library(' in ret:       # locale-independent key-
 word
 --> 559                 raise ImportError, "%s"%ret
    560         else:
    561             try:

 ImportError: Loading required package: cluster
 Warning message:
 In library(package, lib.loc = lib.loc, character.only = TRUE,
 logical.return = TRUE,  :
  there is no package called 'cluster'
 }}}
 from
 Minh suspects that cluster has not been installed in a
 directory where R (the one bundled with Sage) recognizes.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6532>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to