[R] cannot open file .RDataTmp

Roger Bivand Roger.Bivand at nhh.no
Wed Mar 20 15:29:20 CET 2002

On Wed, 20 Mar 2002, Ulrich Leopold wrote:

> since I have installed GRASS_0.1-8.tar.gz (devel) with R 1.4.1 on 
> RedHat7.1 Linux I get the following message when I want to save the 
> workspace image:
> --------------------------------------------------
> Save workspace image? [y/n/c]: y
> Error in file(file, "wb") : cannot open file `.RDataTmp'
> -------------------------------------------------

quit() or q() ask whether you wish to save your workspace image in the
current directory. If you reply "y", the function calls save.image() which
calls save(), which calls file(), which has exited with an error
suggesting that you do not have permission to write to the current
directory. You can use getwd() and setwd() to see which directory you are
in, and move to one you have permission to write in.

> Where can I find the ".RDataTmp"? I only know the ".RData" file.
If you read the code of save.image(), you will see that the function saves
to a uniquely named file, and moves it to .Rdata if file.rename() lets it.

> I do not understand exactly the whole message.
> Ulrich
> *Below* I also attached the result from the installation of the GRASS 
> interface.

Maybe the GRASS statistics mailing list:


would be a better place to discuss this. 

'/usr/local/arch/grass5'/lib: not found - means that you do not have a
recent version of GRASS, since mid-2000, both binary and source
distributions have installed lib and include directories under
$GISBASE. You haven't got one, so once again please read the README file
in GRASS_0.1-8.tar.gz. If your GRASS was installed from source, you will
still have the original libraries and header files, but then you should
use the configure arguments described in the README file to tell the
configure script how to find the libraries and header files.

> -------------------------------------------------------------
> bash-2.04$ R CMD INSTALL -l /home/uleopold/lib/R/library/ 
> tmp/GRASS_0.1-8.tar.gz
> Installing *source* package `GRASS' ...
> /usr/local/arch/grass5/grass5bin/grass5 yes
> '/usr/local/arch/grass5'/lib: not found
> GRASS source files not found - installing interpreted interface
>   R
>   data
>   help
>   >>> Building/Updating help pages for package `GRASS'
>       Formats: text html latex example
>    contour.G                         text    html    latex   example
>    gmeta                             text    html    latex   example
>    interp.new.G                      text    html    latex   example
>       missing link(s):  interp.new
>    kde2d.G                           text    html    latex   example
>    krige.G                           text    html    latex   example
>    list.GRASS                        text    html    latex   example
>    pcbs                              text    html    latex   example
>    plot.grassmeta                    text    html    latex   example
>    rast.get                          text    html    latex   example
>    rast.put                          text    html    latex   example
>    sites.get                         text    html    latex   example
>    sites.put                         text    html    latex   example
>    summary.grassmeta                 text    html    latex   example
>    trmat.G                           text    html    latex   example
>    utm.maas                          text    html    latex   example
> -------------------------------------------------------------------


Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
and: Department of Geography and Regional Development, University of
Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland.

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list