#7771: fix R restart in interface
--------------------------+-------------------------------------------------
   Reporter:  kcrisman    |       Owner:  was       
       Type:  defect      |      Status:  new       
   Priority:  minor       |   Milestone:  sage-4.3.2
  Component:  interfaces  |    Keywords:            
     Author:              |    Upstream:  N/A       
   Reviewer:              |      Merged:            
Work_issues:              |  
--------------------------+-------------------------------------------------

Comment(by mvngu):

 As of Sage 4.3.2.alpha1, ticket #6532 upgrades R to version 2.10.1. From
 what I gather, after installing an R package, one needs to restart Sage:
 {{{
 [mv...@mod sage-4.3.2.alpha1]$ ./sage
 ----------------------------------------------------------------------
 | Sage Version 4.3.2.alpha1, Release Date: 2010-01-31                |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 sage: r.install_packages("cluster")
 <downloading-compiling-messages>
 * DONE (cluster)

 The downloaded packages are in
         ‘/tmp/RtmpqofuAu/downloaded_packages’
 Updating HTML index of packages in '.Library'
 >
 Please restart Sage in order to use 'cluster'.
 sage: exit
 Exiting SAGE (CPU time 0m0.05s, Wall time 0m38.43s).
 }}}
 It didn't say to use the command `r.restart()`. What about issuing
 `reset()` after installing an R package? It works for me:
 {{{
 sage: r.install_packages("igraph")
 <downloading-compiling-messages>
 * DONE (igraph)

 The downloaded packages are in
         ‘/tmp/RtmpllHMEs/downloaded_packages’
 Updating HTML index of packages in '.Library'
 >
 Please restart Sage in order to use 'igraph'.
 sage: reset()
 sage: r.library("igraph")
 }}}
 Perhaps you want the command `r.restart()` to achieve the same effect as
 `exit` and `reset()`? That is, one could install an R package with
 `r.install_packages("pkg-name")`, run `r.reset()`, and then load the newly
 installed package with `r.library("pkg-name")`? As a side note, one could
 not install R packages with a binary Sage distribution.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7771#comment:1>
Sage <http://www.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