Re: [R] select.list() cannot be used non-interactively

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 03 Jul 2008 12:46:32 +0100 (BST)

Note that the current version of R is 2.7.1, and 2.6.2 is the previous-but-one version of R. The 'previous version', 2.7.0, behaves in the same way as 2.6.2, as does a version as old as 2.4.0.

If there was a version that asked for interaction in a non-interactive session, it had a bug that was corrected long ago.

If you want to interact with R, you need to run R interactively.

On Tue, 1 Jul 2008, Fabio Fanoni wrote:

> Hi. With the previous version of R, it was possible to execute the
> function 'select.list()' in BATCH mode. In this way, I could write my R
> code in a .R file and execute that with a double click on a .bat file,
> that contain the instruction tu run my R code in batch mode (R CMD BATCH
> myRcode.R). When I do that, a windows appear and I just have to select
> an item from the list. Now I've installed the version 2.6.2 and this
> function is fobidden with this error message in the .Rout file:
>
> type<-select.list(list=c("Type 1","Type 2","Type 3"))
> Error in select.list(list = c("Type 1", "Type 2", "Type 3"): select.list() cannot be used non-interactivelyExecution halted
>
> Why?
> How can I solve my problem?
> winDialog and winDialogString work correctly!

Actually, it seems that they do not.

>
> Many thanks!
>
> Fabio
>
> _________________________________________________________________
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_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.
Received on Thu 03 Jul 2008 - 11:54:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 Jul 2008 - 12:31:52 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive