On Tue, Jul 14, 2009 at 6:20 AM, Minh Nguyen<[email protected]> wrote:
>
> Hi Aleksey,
>

...

>
> Not at all; you're not doing anything wrong. This is a known error;
> see ticket #6379 at
>
> http://www.sagetrac.org/sage_trac/ticket/6379
>
> which already has a patch and positive review. 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'


I'm no expert on R by any means but if I'm understanding this thread,
and your (Minh's) comments on #6379 correctly, a new ticket
should be opened up separate from
http://www.sagetrac.org/sage_trac/ticket/6379.
If you agree, I can do that if you like.


>
> The error message is much "friendlier" than previously. However, from
> the output I suspect that cluster has not been installed in a
> directory where R (the one bundled with Sage) recognizes. Just a
> guess.
>

...

>
> --
> Regards
> Minh Van Nguyen
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to