Deleting .RData is not a problem. In Linux, when ever you launch R it
looks at the current directory for an .RData file. This file can be
created when you q() R (it asks if you want to save workspace). If you
say yes, .RData is created with all of the information from the current
session. If you delete it, it is the same as answering no to the q()
question.
Michael
Graham Smith wrote:
OK,
I have renamed .RData and this has allowed R to run. I thought R
might have created a new default .RData file, but it hasn't.
Can I just delete this .RData file and let R sort itself out?
Graham
2009/10/30 Graham Smith <myotis...@gmail.com>:
The ghost of my previous attempt to install rattle lives on in .RData
and is preventing me opening R :-)
Error in loadNamespace(name) : there is no package called 'rattle'
Fatal error: unable to restore saved data in .RData
R auto exits at that point
See below for full message
So I'm afraid I could do with a bit more help.
Thanks,
Graham
=======================
gra...@t42-laptop:~$ R
R version 2.10.0 (2009-10-26)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
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.
Error in loadNamespace(name) : there is no package called 'rattle'
Fatal error: unable to restore saved data in .RData
=====================================================
2009/10/30 Graham Smith <myotis...@gmail.com>:
Michael,
Thanks, I did think it looked a bit strange compared to the other
entries. Update is now downloading, so we will see how I get on.
Graham
2009/10/30 Michael Rutter <ma...@psu.edu>:
Graham,
It appears that the mail client I was using added some extra stuff. It
should be:
deb http://cran.ms.unimelb.edu.au/bin/linux/ubuntu jaunty/
Just tested this line in my sources.list and it came back fine.
Michael
Graham Smith wrote:
Michael,
Thanks for this, I have added CRAN like this before, during one of
many other attempts with Linux, but if If I add your code as suggested
or add the repository via synaptic, I get a 404 error
W: Failed to fetch
http://cran.ms.unimelb.edu.au/bin/linux/ubuntu/dists/<http://<my.favorite.cran.mirror>/bin/linux/ubuntu>/jaunty//binary-i386/Packages
404 Not Found
I have also tried the UK and Netherlands mirrors as well, but both of
these also give a 404 error.
I assume I am doing something stupid.
Graham
2009/10/30 Michael Rutter <ma...@psu.edu>:
Graham,
The instructions for adding the CRAN repositories are here:
http://cran.r-project.org/bin/linux/ubuntu/
But let me expand on them a little. This is assuming you have sudo
rights.
If you do not, forward this email to your administrator.
In a terminal, enter
sudo gedit /etc/apt/sources.list
At the very end of this file, add the following two lines:
## CRAN
deb http://cran.ms.unimelb.edu.au/bin/linux/ubuntu
<http://%3Cmy.favorite.cran.mirror%3E/bin/linux/ubuntu> jaunty/
Save and close the editor. Then in the terminal run these lines:
gpg --keyserver subkeys.pgp.net --recv-key E2A11821
gpg -a --export E2A11821 | sudo apt-key add -
sudo apt-get update
sudo apt-get install r-base
This will authenticate the code, remove the old R and install the newest
version.
For a program like R in which there is constant development and bug fixes
(but not many), it is a good idea to use the most recent version from
CRAN.
Michael
Graham Smith wrote:
Paul,
Thanks, 2.8.1 is the most up to date in the Ubuntu Repository, so that
is the one I am using with Ubuntu. As a novice Ubuntu user I have been
given the impression that it is best to stick with the version via
synaptic/ubuntu repository BUT i agree this could well be a version
incompatibility issue as rattle isn't available from the Ubuntu
repository and installed directly from CRAN.
Maybe I need to uninstall the Ubuntu repository version and install
the latest from CRAN. I admit I find this what to install from where a
bit confusing.
Graham
2009/10/30 Paul Leo <p....@uq.edu.au>:
That a very outdated version of R, current is R2.10
I just installed r2.10 and used
setRepositories() # choose CRAN
install.packages() # choose rattle
...
** preparing package for lazy loading
Loading required package: XML
Warning: package 'XML' was built under R version 2.7.1 and help may not
work correctly
** help
*** installing help indices
** building package indices ...
* DONE (rattle)
... ignored warnings:
library(rattle)
rattle() # launched a gui interface that seems to work
sessionInfo()
R version 2.10.0 (2009-10-26)
x86_64-pc-linux-gnu
locale:
[1] LC_CTYPE=en_AU.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_AU.UTF-8 LC_COLLATE=en_AU.UTF-8
[5] LC_MONETARY=C LC_MESSAGES=en_AU.UTF-8
[7] LC_PAPER=en_AU.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods
base
other attached packages:
[1] RGtk2_2.12.5-3 rattle_2.5.1 pmml_1.2.19 XML_1.95-3
loaded via a namespace (and not attached):
[1] tcltk_2.10.0 tools_2.10.0
so perhaps a new intall and check those "attached packages listed
above"
I have ubuntu 8.1 so you may need to check those library versions
-----Original Message-----
From: Graham Smith <myotis...@gmail.com>
To: r-sig-debian@r-project.org
Subject: [R-sig-Debian] Rattle - libglade not found
Date: Fri, 30 Oct 2009 07:07:02 +0000
I have just installed rattle on Ubntu 9.04, and R 2.8.1 and get an
error message when I try to run it.
library(rattle)
rattle()
Error in rattle() :
The RGtk2 package did not find libglade installed. Please install it.
I have installed libglade2-dev through synaptic, and following
suggestion from an earlier thread re-installed RGtk2 using
install.packages, and through synaptic.
Can anyone offer some help - you may realise that I am not that
familiar with Linux/Ubuntu.
Many thanks,
Graham
P.S. I have cross posted this on the Ubuntu forum, before remembering
this forum existed.
_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian
--
Dr Paul Leo
Bioinformatician
Diamantina Institute for Cancer, Immunology and Metabolic Medicine
University of Queensland
--------------------------------------------------------------------------------------
Research Wing, Bldg 1
Princess Alexandria Hospital
Woolloongabba, QLD, 4102
Tel: +61 7 3240 7740 Mob: 041 303 8691 Fax: +61 7 3240 5946
Email: p....@uq.edu.au Web: http://www.di.uq.edu.au
_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian
--
Dr. Michael A. Rutter
School of Science
Penn State Erie, The Behrend College
Station Road
Erie, PA 16563
http://math.bd.psu.edu/faculty/rutter
_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian
--
Dr. Michael A. Rutter
School of Science
Penn State Erie, The Behrend College
Station Road
Erie, PA 16563
http://math.bd.psu.edu/faculty/rutter
_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian