Re: [R] Odd crash with tcl/tk

2010-08-17 Thread Gabor Grothendieck
On Tue, Aug 17, 2010 at 11:49 AM, Lars Dalby  wrote:
> Hi Peter
>
> Spot on! You where absolutely right. After installing the tcltk bits
> it worked just fine.
>
> Thank you very much!
>
> Lars
>
> On Aug 17, 4:36 pm, peter dalgaard  wrote:
>> Sorry to chime in late (for some reason, I was not at the Mac when this came 
>> in originally).
>>
>> I can't reproduce the situation. One guess is that you haven't installed the 
>> tcltk bits, as indicated on thehttp://cran.at.r-project.org/bin/macosx/page.
>>

That should not be necessary if you used

  options(gsubfn.engine = "R")

since it should not be using tcltk in the first place.  Are you using
the latest version of gsubfn on CRAN -- gsubfn 0.5-3

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Odd crash with tcl/tk

2010-08-17 Thread Gabor Grothendieck
That should not be necessary if you used

   options(gsubfn.engine = "R")

since it should not be using tcltk in the first place.

Perhaps you are using an old version of gsubfn -- the latest on CRAN is 0.5-3.


On Tue, Aug 17, 2010 at 11:49 AM, Lars Dalby  wrote:
> Hi Peter
>
> Spot on! You where absolutely right. After installing the tcltk bits
> it worked just fine.
>
> Thank you very much!
>
> Lars
>
> On Aug 17, 4:36 pm, peter dalgaard  wrote:
>> Sorry to chime in late (for some reason, I was not at the Mac when this came 
>> in originally).
>>
>> I can't reproduce the situation. One guess is that you haven't installed the 
>> tcltk bits, as indicated on thehttp://cran.at.r-project.org/bin/macosx/page.
>>
>> -pd
>>
>> On Aug 17, 2010, at 4:12 PM, Lars Dalby wrote:
>>
>>
>>
>>
>>
>> > Hi
>>
>> > @ Andrew: Did you get this problem solved?
>> > I am having similar problems and have tried to work around it using
>> > options(gsubfn.engine = "R") as suggested by Gabor.
>> > However, this don't solve on my machine. R just freezes up trying to
>> > execute read.csv.sql()
>>
>> > On OSX 10.6.4, R 2.11.1 (2010-05-31) 64bit
>>
>> > Any help is much appreciated!
>>
>> > Lars
>>
>> > On Jul 28, 9:41 pm, Gabor Grothendieck 
>> > wrote:
>> >> On Wed, Jul 28, 2010 at 10:06 AM, AndrewPage  wrote:
>>
>> >>> Hi,
>>
>> >>> Recently, I've been trying to use packages in R that require loading the
>> >>> Tcl/Tk interface.  However, I get a strange result and a crash that I
>> >>> haven't been able to find discussion about on these boards (or any 
>> >>> others).
>>
>> >>> When I enter library(tcltk), it reads "Loading Tcl/Tk interface ... ", 
>> >>> but
>> >>> then never says "done" or displays some sort of error message.  Looks 
>> >>> like
>> >>> this:
>>
>>  x11()
>>  library(tcltk)
>> >>> Loading Tcl/Tk interface ...
>>
>> >>> Now you can type additional commands in, at your peril!  For example, if 
>> >>> I
>> >>> type in the text "library", nothing happens, but "library(" causes R to
>> >>> freeze up irreparably, with "executing:
>> >>> try(gsub('\\s+','',paste(capture.output(print(args(library,collapse="))
>> >>>  ,silent=TRUE)"
>> >>> displayed at the bottom.  When this happens, there's nothing you can do 
>> >>> but
>> >>> restart R because it's completely frozen.
>>
>> >>> I'm running R version 2.11.1 Patched (2010-07-27 r52627)
>>
>> >>> [R.app GUI 1.35 (5603) i386-apple-darwin9.8.0]
>>
>> >>> with XQuartz 2.3.5 (xorg-server 1.4.2-apple53)
>>
>> >>> on a mac (snow leopard)
>>
>> >>> Thanks for any help/suggestions in advance,
>>
>> >>> Andrew
>>
>> >> One thought is that if this is to use gsubfn or sqldf (which uses
>> >> gsubfn) then you can get them to not use thetcltkcode but use R code
>> >> instead by either of these two means:
>>
>> >> 1. issue the command:
>> >> options(gsubfn.engine = "R")
>> >> before issuing your library(sqldf) or library(gsubfn) command.  You
>> >> can put the options command in your .Rprofile if you like and then you
>> >> will have it on every session.
>>
>> >> or
>>
>> >> 2. use a build of R that has notcltkin it.  In that case it will
>> >> recognize it and switch to using R.  I believe one such build exists
>> >> for the Mac.
>>
>> >> __
>> >> r-h...@r-project.org mailing 
>> >> listhttps://stat.ethz.ch/mailman/listinfo/r-help
>> >> PLEASE do read the posting 
>> >> guidehttp://www.R-project.org/posting-guide.html
>> >> and provide commented, minimal, self-contained, reproducible code.
>>
>> > __
>> > r-h...@r-project.org mailing list
>> >https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>>
>> --
>> Peter Dalgaard
>> Center for Statistics, Copenhagen Business School
>> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
>> Phone: (+45)38153501
>> Email: pd@cbs.dk  Priv: pda...@gmail.com
>>
>> __
>> r-h...@r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Odd crash with tcl/tk

2010-08-17 Thread Lars Dalby
Hi Peter

Spot on! You where absolutely right. After installing the tcltk bits
it worked just fine.

Thank you very much!

Lars

On Aug 17, 4:36 pm, peter dalgaard  wrote:
> Sorry to chime in late (for some reason, I was not at the Mac when this came 
> in originally).
>
> I can't reproduce the situation. One guess is that you haven't installed the 
> tcltk bits, as indicated on thehttp://cran.at.r-project.org/bin/macosx/page.
>
> -pd
>
> On Aug 17, 2010, at 4:12 PM, Lars Dalby wrote:
>
>
>
>
>
> > Hi
>
> > @ Andrew: Did you get this problem solved?
> > I am having similar problems and have tried to work around it using
> > options(gsubfn.engine = "R") as suggested by Gabor.
> > However, this don't solve on my machine. R just freezes up trying to
> > execute read.csv.sql()
>
> > On OSX 10.6.4, R 2.11.1 (2010-05-31) 64bit
>
> > Any help is much appreciated!
>
> > Lars
>
> > On Jul 28, 9:41 pm, Gabor Grothendieck 
> > wrote:
> >> On Wed, Jul 28, 2010 at 10:06 AM, AndrewPage  wrote:
>
> >>> Hi,
>
> >>> Recently, I've been trying to use packages in R that require loading the
> >>> Tcl/Tk interface.  However, I get a strange result and a crash that I
> >>> haven't been able to find discussion about on these boards (or any 
> >>> others).
>
> >>> When I enter library(tcltk), it reads "Loading Tcl/Tk interface ... ", but
> >>> then never says "done" or displays some sort of error message.  Looks like
> >>> this:
>
>  x11()
>  library(tcltk)
> >>> Loading Tcl/Tk interface ...
>
> >>> Now you can type additional commands in, at your peril!  For example, if I
> >>> type in the text "library", nothing happens, but "library(" causes R to
> >>> freeze up irreparably, with "executing:
> >>> try(gsub('\\s+','',paste(capture.output(print(args(library,collapse="))
> >>>  ,silent=TRUE)"
> >>> displayed at the bottom.  When this happens, there's nothing you can do 
> >>> but
> >>> restart R because it's completely frozen.
>
> >>> I'm running R version 2.11.1 Patched (2010-07-27 r52627)
>
> >>> [R.app GUI 1.35 (5603) i386-apple-darwin9.8.0]
>
> >>> with XQuartz 2.3.5 (xorg-server 1.4.2-apple53)
>
> >>> on a mac (snow leopard)
>
> >>> Thanks for any help/suggestions in advance,
>
> >>> Andrew
>
> >> One thought is that if this is to use gsubfn or sqldf (which uses
> >> gsubfn) then you can get them to not use thetcltkcode but use R code
> >> instead by either of these two means:
>
> >> 1. issue the command:
> >> options(gsubfn.engine = "R")
> >> before issuing your library(sqldf) or library(gsubfn) command.  You
> >> can put the options command in your .Rprofile if you like and then you
> >> will have it on every session.
>
> >> or
>
> >> 2. use a build of R that has notcltkin it.  In that case it will
> >> recognize it and switch to using R.  I believe one such build exists
> >> for the Mac.
>
> >> __
> >> r-h...@r-project.org mailing 
> >> listhttps://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
>
> > __
> > r-h...@r-project.org mailing list
> >https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> --
> Peter Dalgaard
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: pd@cbs.dk  Priv: pda...@gmail.com
>
> __
> r-h...@r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Odd crash with tcl/tk

2010-08-17 Thread peter dalgaard
Sorry to chime in late (for some reason, I was not at the Mac when this came in 
originally). 

I can't reproduce the situation. One guess is that you haven't installed the 
tcltk bits, as indicated on the http://cran.at.r-project.org/bin/macosx/ page.

-pd


On Aug 17, 2010, at 4:12 PM, Lars Dalby wrote:

> Hi
> 
> @ Andrew: Did you get this problem solved?
> I am having similar problems and have tried to work around it using
> options(gsubfn.engine = "R") as suggested by Gabor.
> However, this don't solve on my machine. R just freezes up trying to
> execute read.csv.sql()
> 
> On OSX 10.6.4, R 2.11.1 (2010-05-31) 64bit
> 
> Any help is much appreciated!
> 
> Lars
> 
> On Jul 28, 9:41 pm, Gabor Grothendieck 
> wrote:
>> On Wed, Jul 28, 2010 at 10:06 AM, AndrewPage  wrote:
>> 
>>> Hi,
>> 
>>> Recently, I've been trying to use packages in R that require loading the
>>> Tcl/Tk interface.  However, I get a strange result and a crash that I
>>> haven't been able to find discussion about on these boards (or any others).
>> 
>>> When I enter library(tcltk), it reads "Loading Tcl/Tk interface ... ", but
>>> then never says "done" or displays some sort of error message.  Looks like
>>> this:
>> 
 x11()
 library(tcltk)
>>> Loading Tcl/Tk interface ...
>> 
>>> Now you can type additional commands in, at your peril!  For example, if I
>>> type in the text "library", nothing happens, but "library(" causes R to
>>> freeze up irreparably, with "executing:
>>> try(gsub('\\s+','',paste(capture.output(print(args(library,collapse=")) 
>>> ,silent=TRUE)"
>>> displayed at the bottom.  When this happens, there's nothing you can do but
>>> restart R because it's completely frozen.
>> 
>>> I'm running R version 2.11.1 Patched (2010-07-27 r52627)
>> 
>>> [R.app GUI 1.35 (5603) i386-apple-darwin9.8.0]
>> 
>>> with XQuartz 2.3.5 (xorg-server 1.4.2-apple53)
>> 
>>> on a mac (snow leopard)
>> 
>>> Thanks for any help/suggestions in advance,
>> 
>>> Andrew
>> 
>> One thought is that if this is to use gsubfn or sqldf (which uses
>> gsubfn) then you can get them to not use thetcltkcode but use R code
>> instead by either of these two means:
>> 
>> 1. issue the command:
>> options(gsubfn.engine = "R")
>> before issuing your library(sqldf) or library(gsubfn) command.  You
>> can put the options command in your .Rprofile if you like and then you
>> will have it on every session.
>> 
>> or
>> 
>> 2. use a build of R that has notcltkin it.  In that case it will
>> recognize it and switch to using R.  I believe one such build exists
>> for the Mac.
>> 
>> __
>> r-h...@r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Odd crash with tcl/tk

2010-08-17 Thread Lars Dalby
Hi

@ Andrew: Did you get this problem solved?
I am having similar problems and have tried to work around it using
options(gsubfn.engine = "R") as suggested by Gabor.
However, this don't solve on my machine. R just freezes up trying to
execute read.csv.sql()

On OSX 10.6.4, R 2.11.1 (2010-05-31) 64bit

Any help is much appreciated!

Lars

On Jul 28, 9:41 pm, Gabor Grothendieck 
wrote:
> On Wed, Jul 28, 2010 at 10:06 AM, AndrewPage  wrote:
>
> > Hi,
>
> > Recently, I've been trying to use packages in R that require loading the
> > Tcl/Tk interface.  However, I get a strange result and a crash that I
> > haven't been able to find discussion about on these boards (or any others).
>
> > When I enter library(tcltk), it reads "Loading Tcl/Tk interface ... ", but
> > then never says "done" or displays some sort of error message.  Looks like
> > this:
>
> >> x11()
> >> library(tcltk)
> > Loading Tcl/Tk interface ...
>
> > Now you can type additional commands in, at your peril!  For example, if I
> > type in the text "library", nothing happens, but "library(" causes R to
> > freeze up irreparably, with "executing:
> > try(gsub('\\s+','',paste(capture.output(print(args(library,collapse=")) 
> > ,silent=TRUE)"
> > displayed at the bottom.  When this happens, there's nothing you can do but
> > restart R because it's completely frozen.
>
> > I'm running R version 2.11.1 Patched (2010-07-27 r52627)
>
> > [R.app GUI 1.35 (5603) i386-apple-darwin9.8.0]
>
> > with XQuartz 2.3.5 (xorg-server 1.4.2-apple53)
>
> > on a mac (snow leopard)
>
> > Thanks for any help/suggestions in advance,
>
> > Andrew
>
> One thought is that if this is to use gsubfn or sqldf (which uses
> gsubfn) then you can get them to not use thetcltkcode but use R code
> instead by either of these two means:
>
> 1. issue the command:
> options(gsubfn.engine = "R")
> before issuing your library(sqldf) or library(gsubfn) command.  You
> can put the options command in your .Rprofile if you like and then you
> will have it on every session.
>
> or
>
> 2. use a build of R that has notcltkin it.  In that case it will
> recognize it and switch to using R.  I believe one such build exists
> for the Mac.
>
> __
> r-h...@r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Odd crash with tcl/tk

2010-07-28 Thread Gabor Grothendieck
On Wed, Jul 28, 2010 at 10:06 AM, AndrewPage  wrote:
>
> Hi,
>
> Recently, I've been trying to use packages in R that require loading the
> Tcl/Tk interface.  However, I get a strange result and a crash that I
> haven't been able to find discussion about on these boards (or any others).
>
> When I enter library(tcltk), it reads "Loading Tcl/Tk interface ... ", but
> then never says "done" or displays some sort of error message.  Looks like
> this:
>
>> x11()
>> library(tcltk)
> Loading Tcl/Tk interface ...
>>
>
>
> Now you can type additional commands in, at your peril!  For example, if I
> type in the text "library", nothing happens, but "library(" causes R to
> freeze up irreparably, with "executing:
> try(gsub('\\s+','',paste(capture.output(print(args(library,collapse=")),silent=TRUE)"
> displayed at the bottom.  When this happens, there's nothing you can do but
> restart R because it's completely frozen.
>
> I'm running R version 2.11.1 Patched (2010-07-27 r52627)
>
> [R.app GUI 1.35 (5603) i386-apple-darwin9.8.0]
>
> with XQuartz 2.3.5 (xorg-server 1.4.2-apple53)
>
> on a mac (snow leopard)
>
> Thanks for any help/suggestions in advance,
>
> Andrew

One thought is that if this is to use gsubfn or sqldf (which uses
gsubfn) then you can get them to not use the tcltk code but use R code
instead by either of these two means:

1. issue the command:
options(gsubfn.engine = "R")
before issuing your library(sqldf) or library(gsubfn) command.  You
can put the options command in your .Rprofile if you like and then you
will have it on every session.

or

2. use a build of R that has no tcltk in it.  In that case it will
recognize it and switch to using R.  I believe one such build exists
for the Mac.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Odd crash with tcl/tk

2010-07-28 Thread AndrewPage

Hi,

Recently, I've been trying to use packages in R that require loading the
Tcl/Tk interface.  However, I get a strange result and a crash that I
haven't been able to find discussion about on these boards (or any others).

When I enter library(tcltk), it reads "Loading Tcl/Tk interface ... ", but
then never says "done" or displays some sort of error message.  Looks like
this:

> x11()
> library(tcltk)
Loading Tcl/Tk interface ... 
> 


Now you can type additional commands in, at your peril!  For example, if I
type in the text "library", nothing happens, but "library(" causes R to
freeze up irreparably, with "executing:
try(gsub('\\s+','',paste(capture.output(print(args(library,collapse=")),silent=TRUE)"
displayed at the bottom.  When this happens, there's nothing you can do but
restart R because it's completely frozen.

I'm running R version 2.11.1 Patched (2010-07-27 r52627)

[R.app GUI 1.35 (5603) i386-apple-darwin9.8.0]

with XQuartz 2.3.5 (xorg-server 1.4.2-apple53)

on a mac (snow leopard)

Thanks for any help/suggestions in advance,

Andrew
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Odd-crash-with-tcl-tk-tp2305032p2305032.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.