[Rd] Suggestion: Change default to download.file(..., mode="wb") ...instead of mode="w" with some bells and whistles

2012-08-29 Thread Henrik Bengtsson
Hi, I keep seeing the problem where people are download binary files as text (mode="w") when using R's download.file() for FTP/HTTP downloads. It often results in unnecessary troubleshooting until one concludes that the downloaded file has been corrupted due to (what I think is) translated newlin

Re: [Rd] include dll in R-package

2012-08-29 Thread Prof Brian Ripley
On 29/08/2012 12:19, Berend Hasselman wrote: On 29-08-2012, at 05:31, LIYING HUANG wrote: Thanks a lot for those examples, is there any example with Fortran source codes which could depend on an external Fortran DLL? I wouldn't know. Berend What does 'depend on' mean here? (All the co

Re: [Rd] include dll in R-package

2012-08-29 Thread Berend Hasselman
On 29-08-2012, at 05:31, LIYING HUANG wrote: > > > Thanks a lot for those examples, is there any example with Fortran > source codes which could depend on an external Fortran DLL? > I wouldn't know. Berend __ R-devel@r-project.org mailing list htt

[Rd] "Ambiguous" variation of default environment in `getClasses()` (standard function vs. formal S4 method)

2012-08-29 Thread Janko Thyson
Dear list, This probably makes perfect sense from the language designers' perspective, but at least for me this was/is quite an interesting and unexpected behavior which I thought might be worth sharing: The default value of argument |where|in function |getClasses()|seems to vary depending on

Re: [Rd] include dll in R-package

2012-08-29 Thread LIYING HUANG
Thanks a lot for those examples, is there any example with Fortran source codes which could depend on an external Fortran DLL? Liy - 原始邮件 - 发件人: "Berend Hasselman" 收件人: "LIYING HUANG" 抄送: "Kasper Daniel Hansen" , r-devel@r-project.org 发送时间: 星期二, 2012年 8 月 28日 上午 7:02:02 主题: Re: [Rd] i

[Rd] using setOldClass() causes warning on unloadNamespace() if the package imports methods

2012-08-29 Thread sebastian . meyer
For the CRAN-package "surveillance", unloadNamespace("surveillance") gives the following warning message: In FUN(X[[2L]], ...) : Created a package name, ‘2012-08-28 22:42:37’, when none found Similar warnings appear for the CRAN-package "solaR" and probably some other packages. I created a d

[Rd] R package repository management tools

2012-08-29 Thread Erik Shilts
R-devel, I'm setting up a custom repository and would like to use the install_version() function in the devtools package to control package versions. However, this function is dependent on having a CRAN-like repository setup with an archive directory and an Archive.rds file. Are there any package