[Rd] editor in Windows doesn't like a data frame with row names (PR#797)

jfox@mcmaster.ca jfox@mcmaster.ca
Sun, 31 Dec 2000 00:21:29 +0100 (MET)


The editor in R version 1.2.0 returns an error after editing a data frame 
that has row names. This is on a Windows 2000 system, but I've encountered 
the same problem under Windows 95. Here's a simple example:

  ------------------------------------------------------------------------------------

R : Copyright 2000, The R Development Core Team
Version 1.2.0  (2000-12-15)

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.

R is a collaborative project with many contributors.
Type `contributors()' for more information.

Type `demo()' for some demos, `help()' for on-line help, or
`help.start()' for a HTML browser interface to help.
Type `q()' to quit R.

 > data(Formaldehyde)
 > Formaldehyde
   carb optden
1  0.1  0.086
2  0.3  0.269
3  0.5  0.446
4  0.6  0.538
5  0.7  0.626
6  0.9  0.782
 > edit(Formaldehyde) # no problem here
   carb optden
1  0.1  0.086
2  0.3  0.269
3  0.5  0.446
4  0.6  0.538
5  0.7  0.626
6  0.9  0.782
 > rownames(Formaldehyde)
[1] "1" "2" "3" "4" "5" "6"
 > rownames(Formaldehyde)<-letters[1:6]
 > Formaldehyde # seems ok
   carb optden
a  0.1  0.086
b  0.3  0.269
c  0.5  0.446
d  0.6  0.538
e  0.7  0.626
f  0.9  0.782
 > edit(Formaldehyde) # I simply closed the editor without changing anything
Error in rownames<-(x, value) : dimnames applied to non-array
 >


--please do not edit the information below--

Version:
  platform = i386-pc-mingw32
  arch = x86
  os = Win32
  system = x86, Win32
  status =
  major = 1
  minor = 2.0
  year = 2000
  month = 12
  day = 15
  language = R

Windows 0.0 (build 0) Service Pack 10.0 ()

Search Path:
  .GlobalEnv, package:car, package:ctest, Autoloads, package:base


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._