[R-SIG-Mac] tcltk does not automatically launch XQuartz - Solved

Luca Scrucca luca at stat.unipg.it
Fri Oct 26 09:29:04 CEST 2012


Thanks for the hint Peter, it helps me to solve the problem. 
Among the several proposals the following fixed my problem. From the terminal:

> launchctl load -w /Library/LaunchAgents/org.macosforge.xquartz.startx.plist

then logged out, and back in, and that fixed my problem

Luca


> On 25 Oct 2012, at 13:04, peter dalgaard <pdalgd at gmail.com> wrote:
> 
>> Perhaps try the suggestions from
>> 
>> https://discussions.apple.com/thread/4157422?start=0&tstart=0
>> 
>> -pd
>> 
>> On Oct 25, 2012, at 12:43 , Luca Scrucca wrote:
>> 
>>> Dear Mac useRs,
>>> 
>>> I have a problem with tcltk on a Mac running OSX 10.8.2 and R 2.15.1.
>>> Using R.app GUI I got the following:
>>> 
>>>> library(tcltk)
>>> Loading Tcl/Tk interface ... done
>>> Warning message:
>>> In fun(libname, pkgname) :
>>> no display name and no $DISPLAY environment variable
>>> 
>>> I was able to solve this by running XQuartz.app before loading the tcltk library. 
>>> However, this doesn't help if I run R from the console. Unfortunately, this is needed if you want to build/check a package that requires tcltk.
>>> 
>>> Furthermore, in the previous OSX versions I used (both Leopard and Snow Leopard series) when I was in R (both on GUI or console) and I needed the tcltk library, if X11 was not running the system automatically launched the required application. This appears to be changed with Mountain Lion (and Xquartz) but I guess the old behaviour would solve the problem mentioned above.
>>> 
>>> Thanks in advance for your help.
>>> 
>>> Luca
>>> 
>>> 
>>> --------------------------------------------------
>>> Luca Scrucca
>>> Dipartimento di Economia, Finanza e Statistica
>>> Sezione di Statistica
>>> Università degli Studi di Perugia
>>> Via A. Pascoli, 20
>>> 06123 PERUGIA  (ITALY)
>>> Tel. +39-075-5855233  
>>> Fax: +39-075-5855950
>>> E-mail:   luca at stat.unipg.it
>>> Web page: http://www.stat.unipg.it/luca
>>> --------------------------------------------------
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> -- 
>> Peter Dalgaard, Professor
>> Center for Statistics, Copenhagen Business School
>> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
>> Phone: (+45)38153501
>> Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
>> 
>> 
> 
> --------------------------------------------------
> Luca Scrucca
> Dipartimento di Economia, Finanza e Statistica
> Sezione di Statistica
> Università degli Studi di Perugia
> Via A. Pascoli, 20
> 06123 PERUGIA  (ITALY)
> Tel. +39-075-5855233  
> Fax: +39-075-5855950
> E-mail:   luca at stat.unipg.it
> Web page: http://www.stat.unipg.it/luca
> --------------------------------------------------
> 
> 
> 
> 
> 
> 
> 

--------------------------------------------------
Luca Scrucca
Dipartimento di Economia, Finanza e Statistica
Sezione di Statistica
Università degli Studi di Perugia
Via A. Pascoli, 20
06123 PERUGIA  (ITALY)
Tel. +39-075-5855233  
Fax: +39-075-5855950
E-mail:   luca at stat.unipg.it
Web page: http://www.stat.unipg.it/luca
--------------------------------------------------







-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1380 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20121026/cc2479f9/attachment-0001.bin>


More information about the R-SIG-Mac mailing list