Discussion:
WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :
Robert K
2014-08-26 10:02:06 UTC
Permalink
Dear Users,
I've encountered very strange behavior of WinEdt 9.0 and R-Sweave 9.0 on Win 8.2 x64. Yesterday I switched form WinEdt 8.2 and R-Sweave (worked perfectly) to the newest versions 9.0 that was working without any troubles too. Today I switched on my computers and I got an error because as far as I could figure out the comment mark (#) in R is not allowed. Strange because yesterday everything gone fine.

For example I have a line:
<<r packages, eval=FALSE>>=
install.packages("car") #must load once
@

which generates an error:

! You can't use `macro parameter character #' in horizontal mode.
l.95 install.packages("car") #
must load once


I tried to do the same on my laptop (Win 7 x64) and got the same error.

Anyway: R-Sweave is a wonderful add-on - thank you very much Gilbert.

Best,
Robert
Andrej Blejec
2014-08-26 13:14:25 UTC
Permalink
Dear Robert,

something changed on your computer, # works fine for me

Andrej


From: Robert K [mailto:***@outlook.com]
Sent: Tuesday, August 26, 2014 12:11 PM
To: winedt+***@wsg.net
Subject: [WinEdt] WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :

Dear Users,
I've encountered very strange behavior of WinEdt 9.0 and R-Sweave 9.0 on Win 8.2 x64. Yesterday I switched form WinEdt 8.2 and R-Sweave (worked perfectly) to the newest versions 9.0 that was working without any troubles too. Today I switched on my computers and I got an error because as far as I could figure out the comment mark (#) in R is not allowed. Strange because yesterday everything gone fine.

For example I have a line:

<<r packages, eval=FALSE>>=
install.packages("car") #must load once
@

which generates an error:

! You can't use `macro parameter character #' in horizontal mode.
l.95 install.packages("car") #
must load once


I tried to do the same on my laptop (Win 7 x64) and got the same error.

Anyway: R-Sweave is a wonderful add-on - thank you very much Gilbert.

Best,
Robert
Robert K
2014-08-26 18:29:56 UTC
Permalink
Trying to figure out the problem I set the following issues:
1. Using a button: Knit + pdfLaTeX I get the mentioned error but an output tex file is correct (used PDFTeXify gets a pdf file)
2. In order to succeed in the context of the above point I must close a Rnw file. If I don't do this I get an error that refers to the Rnw file but not to the tex file - geting the error I write in WinEdt Console e and WinEdt moves me to the line of the error in the Rnw file where # appears. It makes me thing that actually PDFTeXify uses the Rnw file insted of the tex file.
3. A workaround: use a button: Knit and show, close Rnw file then use PDFTeXify.

The workaround is cumbersome therefore I decided to write more details in the hope of getting a solution.

-Robert

From: ***@outlook.com
To: winedt+***@wsg.net
Date: Tue, 26 Aug 2014 12:02:06 +0200
Subject: [WinEdt] WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :




Dear Users,
I've encountered very strange behavior of WinEdt 9.0 and R-Sweave 9.0 on Win 8.2 x64. Yesterday I switched form WinEdt 8.2 and R-Sweave (worked perfectly) to the newest versions 9.0 that was working without any troubles too. Today I switched on my computers and I got an error because as far as I could figure out the comment mark (#) in R is not allowed. Strange because yesterday everything gone fine.

For example I have a line:
<<r packages, eval=FALSE>>=
install.packages("car") #must load once
@

which generates an error:

! You can't use `macro parameter character #' in horizontal mode.
l.95 install.packages("car") #
must load once


I tried to do the same on my laptop (Win 7 x64) and got the same error.

Anyway: R-Sweave is a wonderful add-on - thank you very much Gilbert.

Best,
Robert
Andrej Blejec
2014-08-26 20:50:22 UTC
Permalink
Robert,

maybe you set your .Rnw file as the "Main file"?

Andrej


From: Robert K [mailto:***@outlook.com]
Sent: Tuesday, August 26, 2014 8:37 PM
To: WinEdt List
Subject: RE: [WinEdt] WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :


Trying to figure out the problem I set the following issues:
1. Using a button: Knit + pdfLaTeX I get the mentioned error but an output tex file is correct (used PDFTeXify gets a pdf file)
2. In order to succeed in the context of the above point I must close a Rnw file. If I don't do this I get an error that refers to the Rnw file but not to the tex file - geting the error I write in WinEdt Console e and WinEdt moves me to the line of the error in the Rnw file where # appears. It makes me thing that actually PDFTeXify uses the Rnw file insted of the tex file.
3. A workaround: use a button: Knit and show, close Rnw file then use PDFTeXify.

The workaround is cumbersome therefore I decided to write more details in the hope of getting a solution.

-Robert
________________________________
From: ***@outlook.com
To: winedt+***@wsg.net
Date: Tue, 26 Aug 2014 12:02:06 +0200
Subject: [WinEdt] WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :
Dear Users,
I've encountered very strange behavior of WinEdt 9.0 and R-Sweave 9.0 on Win 8.2 x64. Yesterday I switched form WinEdt 8.2 and R-Sweave (worked perfectly) to the newest versions 9.0 that was working without any troubles too. Today I switched on my computers and I got an error because as far as I could figure out the comment mark (#) in R is not allowed. Strange because yesterday everything gone fine.

For example I have a line:

<<r packages, eval=FALSE>>=
install.packages("car") #must load once
@

which generates an error:

! You can't use `macro parameter character #' in horizontal mode.
l.95 install.packages("car") #
must load once


I tried to do the same on my laptop (Win 7 x64) and got the same error.

Anyway: R-Sweave is a wonderful add-on - thank you very much Gilbert.

Best,
Robert
Robert K
2014-08-26 22:48:11 UTC
Permalink
Adnrej helped me solved the problem. My Rnw file was set as the "Main file".

Thanks,
- Robert

From: ***@nib.si
To: winedt+***@wsg.net
Date: Tue, 26 Aug 2014 20:50:22 +0000
Subject: RE: [WinEdt] WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :









Robert,

maybe you set your .Rnw file as the "Main file"?



Andrej






From: Robert K [mailto:***@outlook.com]


Sent: Tuesday, August 26, 2014 8:37 PM

To: WinEdt List

Subject: RE: [WinEdt] WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :






Trying to figure out the problem I set the following issues:


1. Using a button: Knit + pdfLaTeX I get the mentioned error but an output tex file is correct (used PDFTeXify gets a pdf file)


2. In order to succeed in the context of the above point I must close a Rnw file. If I don't do this I get an error that refers to the Rnw file but not to the tex file - geting the error I write in WinEdt Console e and WinEdt moves me to the line of the error
in the Rnw file where # appears. It makes me thing that actually PDFTeXify uses the Rnw file insted of the tex file.

3. A workaround: use a button: Knit and show, close Rnw file then use PDFTeXify.




The workaround is cumbersome therefore I decided to write more details in the hope of getting a solution.




-Robert




From: ***@outlook.com

To: winedt+***@wsg.net

Date: Tue, 26 Aug 2014 12:02:06 +0200

Subject: [WinEdt] WinEdt 9.0: R-Sweave 9.0 doesn't recognize a comment mark # :

Dear Users,

I've encountered very strange behavior of WinEdt 9.0 and R-Sweave 9.0 on Win 8.2 x64. Yesterday I switched form WinEdt 8.2 and R-Sweave (worked perfectly) to the newest versions 9.0 that was working without any troubles too. Today I switched on my computers
and I got an error because as far as I could figure out the comment mark (#) in R is not allowed. Strange because yesterday everything gone fine.




For example I have a line:


<<r packages, eval=FALSE>>=

install.packages("car") #must load once

@



which generates an error:



! You can't use `macro parameter character #' in horizontal mode.

l.95 install.packages("car") #

must load once





I tried to do the same on my laptop (Win 7 x64) and got the same error.



Anyway: R-Sweave is a wonderful add-on - thank you very much Gilbert.



Best,

Robert
Joao Seixas (CERN)
2014-08-26 23:11:09 UTC
Permalink
Dear Winedt team,

I have dictionaries (from winedt7) to which I have added words along the
years. Is there a way to import them to winedt 9?

Best regards,
J. Seixas
--
Prof. Joao Seixas
Departamento de Fisica, Instituto Superior Tecnico
Laboratorio de Instrumentacao e Fisica Experimental de Particulas
Karl Koeller
2014-08-27 06:52:24 UTC
Permalink
Post by Joao Seixas (CERN)
Dear Winedt team,
I have dictionaries (from winedt7) to which I have added words along the
years. Is there a way to import them to winedt 9?
Best regards,
J. Seixas
Have you tried with the script InstallDict?

http://www.winedt.org/Macros/InstallDict.php

Karl
Joao Seixas (CERN)
2014-09-10 13:57:29 UTC
Permalink
Dear Karl,

It worked like a charm!

Thank you,
J. Seixas
Post by Karl Koeller
Post by Joao Seixas (CERN)
Dear Winedt team,
I have dictionaries (from winedt7) to which I have added words along the
years. Is there a way to import them to winedt 9?
Best regards,
J. Seixas
Have you tried with the script InstallDict?
http://www.winedt.org/Macros/InstallDict.php
Karl
--
Prof. Joao Seixas
Departamento de Fisica, Instituto Superior Tecnico
Laboratorio de Instrumentacao e Fisica Experimental de Particulas
Loading...