Hi, I run a script file by dropping it on a windows batch file that runs R in --slave modus. In a subfunction there is the call to file.choose(). The problem is, that the dialog does show only folders but no files at all. It's quite strange: a) without --slave modus the files are shown, b) when I copy the whole script file in a different file it was also ok, but when I renamed the script, the dialog again only showed folder names. Questions: - Is it appreciated if I submit a bug report on this issue? How would I do it and to whom? - I would like to have a look at the source code. As the prompt gives me: > file.choose function (new = FALSE) .Internal(file.choose(new)) <environment: namespace:base> I suppose I had to download the source code of the base package and it would be C code. Is this right? -- Best regards, Hans-Peter
OS? R version? Locale? This is a known problem with R 2.1.0 on Windows in some locales, solved long ago in R-patched. On Wed, 15 Jun 2005, Hans-Peter wrote:> Hi, > > I run a script file by dropping it on a windows batch file that runs R > in --slave modus. In a subfunction there is the call to file.choose(). > The problem is, that the dialog does show only folders but no files at > all. It's quite strange: a) without --slave modus the files are shown, > b) when I copy the whole script file in a different file it was also > ok, but when I renamed the script, the dialog again only showed folder > names. > > Questions: > - Is it appreciated if I submit a bug report on this issue? How would > I do it and to whom? > - I would like to have a look at the source code. As the prompt gives me: > > file.choose > function (new = FALSE) > .Internal(file.choose(new)) > <environment: namespace:base> > I suppose I had to download the source code of the base package and it would > be C code. Is this right?No, it is R code. But internal functions are in C.> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlYes, that does apply to you! Please do supply the basic information it asks for. If you want to allege a bug, so read carefully the section on BUGS in the FAQ. -- 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
2005/6/15, Prof Brian Ripley <ripley at stats.ox.ac.uk>:> OS? R version? Locale?Win2000, SP4 - 2.1.0 - "LC_COLLATE=German_Switzerland.1252; LC_CTYPE=German_Switzerland.1252; LC_MONETARY=German_Switzerland.1252; LC_NUMERIC=C;LC_TIME=German_Switzerland.1252"> This is a known problem with R 2.1.0 on Windows in some locales, solved > long ago in R-patched.True. It works perfectly with 2.1.0 patched. Thanks.> > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > Yes, that does apply to you! Please do supply the basic information it > asks for. If you want to allege a bug, so read carefully the section on > BUGS in the FAQ.Ok. - For the next time: could I have found out myself, that this was solved? (I did search the mail archiv and the r-project website; and also had a look at the NEWS) Thanks again and best regards, Hans-Peter
On Wed, 15 Jun 2005, Hans-Peter wrote:> 2005/6/15, Prof Brian Ripley <ripley at stats.ox.ac.uk>: >> OS? R version? Locale? > > Win2000, SP4 - 2.1.0 - > "LC_COLLATE=German_Switzerland.1252; > LC_CTYPE=German_Switzerland.1252; > LC_MONETARY=German_Switzerland.1252; > LC_NUMERIC=C;LC_TIME=German_Switzerland.1252" > >> This is a known problem with R 2.1.0 on Windows in some locales, solved >> long ago in R-patched. > > True. It works perfectly with 2.1.0 patched. Thanks. > >>> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >> Yes, that does apply to you! Please do supply the basic information it >> asks for. If you want to allege a bug, so read carefully the section on >> BUGS in the FAQ. > > Ok. - For the next time: could I have found out myself, that this was solved? > (I did search the mail archiv and the r-project website; and also had > a look at the NEWS)That section asks WIndows users to look at the CHANGES file: it is documented there. -- 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