Skip to content

RWinEdt, other text editors and R2.01 a problem in pasting commands

7 messages · Uwe Ligges, giovanna jona lasinio, PIKAL Petr

#
Dear All,
In the last few days I started using the last version of R as I
encountered a problem with R1.9 and the use of RWinEdt, however the
problem shows with R2.01 as well. More precisely

1. I install R2.01 after removing old verions of R
2. I Install RWinEdt package versione RWinEdt_1.6-2 and
SWinRegistry_0.3-2 and everything seems fine
3. I recall the RWinEdt library (library(RWinEdt)) and WinEdt appears
4. now after loading a workspace I run the following command using the
paste icon in WinEdt: 
plot(x,xaxt="n",xlab="time", ylab=expression(alpha),main=nome,type="l")

And I get the following error message:
<<Error in stripchart(x, ...) : unused argument(s) (xaxt ...)>>
option not even type="l" or type="b" or anything.

If I type the intrusction directly on the command window without any
previous paste operation from WinEdt the command works properly.

Furthermore if I try to paste commands by simply coping it from a text
file and pasting it on the R command window I have the same problem. I
even tried:
source("prova.txt") containing the same command line and I got the same
error:
Error in stripchart(x, ...) : unused argument(s) (xaxt ...)

I'm not very good at using Windows XP, can anyone help?

Thanks
Giovanna Jona Lasinio
#
giovanna jona lasinio wrote:

            
Please don't complain about R-WinEdt, WinEdt, other editors, or Windows 
if the point is obviously somewhere else!

1. Have you redefined plot() in your workspace?
2. What kind of object is x (in particular it's class, please!)?

Uwe Ligges
#
I'm using R since version 1.6, and  I didn't redefine plot in my
workspace (I would never even dream of doing anything like that), I
didn't change any R-environment variable or option in the last 4 month. 
In my example x is a vector of 30 real values ...

I installed the windows service pack2 lately and I removed it now as the
microsoft help desk suggested, but the problem is still there and it is
there even with a new computer on which I installed R for the first time
yesterday. The real problem is that the copy-paste procedure is not
recognized any more on these two computers. If I try to paste any
command using other editors then WinEdt the problem is still there it
extends to almost all R commands, only assign and basic arithmetic is
performed correctly

 in the last two days I tried the following editors:
1. the display file window in the RGUI
2. RWinEdt
3. Xemacs
3. Word pad
4. Block notes
With no changes.

Conclusion: How it may happen that the copy and paste procedure stop
working?

Giovanna
-----Messaggio originale-----
Da: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de] 
Inviato: luned??, 22. novembre 2004 18:55
A: giovanna jona lasinio
Cc: r-help at stat.math.ethz.ch
Oggetto: a question on plot(), workspace or method dispatch, NOT about:
Re: [R] RWinEdt, other text editors and R2.01 a problem in pasting
commands
giovanna jona lasinio wrote:

            
ylab=expression(alpha),main=nome,type="l")
Please don't complain about R-WinEdt, WinEdt, other editors, or Windows 
if the point is obviously somewhere else!

1. Have you redefined plot() in your workspace?
2. What kind of object is x (in particular it's class, please!)?

Uwe Ligges
#
giovanna jona lasinio wrote:

            
And the same command works when typed in the Console in exactly the same 
way?
Please specify a reproducible example, i.e. the data, and the code!
What is the output of str(x)?
Does it still happen when R has been started with --vanilla?

Uwe Ligges
#
The problem I'm pointing out do not happen if I type commands directly
on the command window (as I wrote in the yesterday email) but it shows
when I source any ascii file containing R-command lines, even files I
used in several of my classes and always worked before.
I'm starting to suspect a virus however my antivirus didn't find
anything.
Yesterday I removed R2.0 and started over with R1.9 but nothing changed.

Well just now I tried, in a new workspace
x<-rnorm(30)
u<-c(510,520,530,540,550,600,610,620,630,640,650,700,710,720,730,740,750
,800,810,820,830,840,850,900,910,920,930,940,950,1000)
plot(x,xaxt="n",xlab="time",main="trying",ylab="x",type="l")
axis(1,1:30,labels=as.character(u))

Everything seems to work if I type on the command window, if sourcing
from a file with the same lines and if I cut and paste. Yesterday the
same happened for sometime on new and old workspaces, then the problem
started over again and this morning the problem was there always in new
and old workspaces... I really do not understand what is causing this
unstable behavior. I used to work under Windows NT and I moved to XP
recently then I do not already have a good knowledge of this OS and then
I do not know if the problem may depend on the R-XP interface.... Or
where to look...

Right now I installed only the basic R packages + Rwinedt packages, I'm
going to reinstall the other packages now...
Thanks for any help you can give me :)
Giovanna

-----Messaggio originale-----
Da: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de] 
Inviato: marted??, 23. novembre 2004 10:20
A: giovanna jona lasinio
Cc: r-help at stat.math.ethz.ch
Oggetto: Re: R: a question on plot(), workspace or method dispatch, NOT
about: Re: [R] RWinEdt, other text editors and R2.01 a problem in
pasting commands
giovanna jona lasinio wrote:

            
And the same command works when typed in the Console in exactly the same

way?
Please specify a reproducible example, i.e. the data, and the code! What
is the output of str(x)? Does it still happen when R has been started
with --vanilla?

Uwe Ligges
about:
#
Hi Giovanna

I have encountered such problem some time ago (so it had to be R 
1.8-1.9 approximately). It was connected with some complicated 
plot statements and usually also with **non english** characters in 
annotation texts. I did not found any traceable or repeatable 
pattern and sometime it helped to copy from my Salamander 
viewer window to notepad. But usually I had to retype a command 
in command window (not very positive answer :-(

Cheers
Petr
On 23 Nov 2004 at 9:55, giovanna jona lasinio wrote:

            
Petr Pikal
petr.pikal at precheza.cz
#
Thanks, at least this crazy behavior is not my exclusive problem :-)
I think that if we understand how the OS operates when copying and
pasting we may find a solution...

-----Messaggio originale-----
Da: Petr Pikal [mailto:petr.pikal at precheza.cz] 
Inviato: marted¨¬, 23. novembre 2004 12:04
A: giovanna jona lasinio; r-help-bounces at stat.math.ethz.ch; r-help at stat.
math.ethz.ch
Oggetto: Re: R: a question on plot(), workspace or method dispatch, NOT
about: Re: [R] RWinEdt, other text editors and R2.01 a problem i


Hi Giovanna

I have encountered such problem some time ago (so it had to be R 
1.8-1.9 approximately). It was connected with some complicated 
plot statements and usually also with **non english** characters in 
annotation texts. I did not found any traceable or repeatable 
pattern and sometime it helped to copy from my Salamander 
viewer window to notepad. But usually I had to retype a command 
in command window (not very positive answer :-(

Cheers
Petr
On 23 Nov 2004 at 9:55, giovanna jona lasinio wrote:

            
Petr Pikal
petr.pikal at precheza.cz