ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 14 Apr 2013 13:28:46 -0500Can't Install R Packages in Sagehttp://ask.sagemath.org/question/10023/cant-install-r-packages-in-sage/I'm running Sage 5.8 on Ubuntu 12.10 and am trying to install some R packages within Sage. However, when I enter
%r
install.packages("deSolve")
I get a green line and nothing happens. I am not asked what repository I'd like to use; when I specified a repository, I still got a green line and nothing happened. If I leave out the package name, I get a pop-up asking what package I want to install but nothing after that. What should I do?
jaiaSun, 14 Apr 2013 13:28:46 -0500http://ask.sagemath.org/question/10023/Can't Access Functions After Install R Additional Packagehttp://ask.sagemath.org/question/9183/cant-access-functions-after-install-r-additional-package/Hi,
I'm trying to install an additional package for R, "SampleSizeMeans."
In the Notebook, I type r.install_packages('SampleSizeMeans') and it seems to install properly (output pasted below). Note I do this with "Sage" as the worksheet type at the top.
I've quit Sage completely and restarted the notebook, but none of the functions are available. I switch the Type in the Sage notebook to "R" and type "mu.acc(len=0.2, alpha=2, beta=2, n0=10)" (one of the examples) but it says "Error: could not find function "mu.acc".
Am I missing something or is this a bug?
Thanks very much,
Justin
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata
2528maxresident)k
0inputs+0outputs (0major+204minor)pagefaults 0swaps
R version 2.14.0 (2011-10-31)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-unknown-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> options(repos="http://cran.r-project.org/");
install.packages("SampleSizeMeans")
trying URL
'http://cran.r-project.org/src/contrib/SampleSizeMeans_1.0.tar.gz'
Content type 'application/x-gzip' length 14807 bytes (14 Kb)
opened URL
==================================================
downloaded 14 Kb
* installing *source* package SampleSizeMeans ...
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
* DONE (SampleSizeMeans)
The downloaded packages are in
/tmp/RtmpG4jlho/downloaded_packages
>
Please restart Sage in order to use 'SampleSizeMeans'.
Justin1Wed, 25 Jul 2012 14:07:20 -0500http://ask.sagemath.org/question/9183/