[Rd] tools::md5sum(directory) behavior different on Windows vs. Unix

2013-09-09 Thread Scott Kostyshak
tools::md5sum gives a warning if it receives a directory as an argument on Unix but not on Windows. >From what I understand, this happens because in Windows a directory is not treated as a file so fopen returns NULL. Then, NA is returned without a warning. On Unix, a directory is treated as a file

[Rd] Invalid UTF-8 with gsub(perl=TRUE) and iconv(sub="")

2013-09-09 Thread Milan Bouchet-Valat
Hi! I experience an error with an invalid UTF-8 character passed to gsub(..., perl=TRUE); the interesting point is that with perl=FALSE (the default) no error happens. (The character itself was read from an invalid HTML file.) Illustration of the error: gsub("a", "", "\U3e3965", perl=FALSE) # [1]

Re: [Rd] Invalid UTF-8 with gsub(perl=TRUE) and iconv(sub="")

2013-09-09 Thread Milan Bouchet-Valat
...and of course I forgot to add relevant information. This is with Fedora 19, R 3.0.1 and a UTF-8 locale. On Windows 7 the problem does not appear, i.e. the gsub(perl=TRUE) call does not generate any error and \U3e3965 prints a Chinese character (AFAICT). R version 3.0.1 (2013-05-16) Platform:

[Rd] Package installation and path.package

2013-09-09 Thread Simon Zehnder
Dear R-Devels, I am writing right now my own package that makes use of 'tempfile' and there within with 'path.package'. When I install it, I get the error: Error in path.package("mypackage") : none of the packages are loaded. Here is the code, I use in my package: ".defaultDBPath"<- funct

Re: [Rd] Invalid UTF-8 with gsub(perl=TRUE) and iconv(sub="")

2013-09-09 Thread Prof Brian Ripley
On 09/09/2013 09:49, Milan Bouchet-Valat wrote: Hi! I experience an error with an invalid UTF-8 character passed to gsub(..., perl=TRUE); the interesting point is that with perl=FALSE (the default) no error happens. (The character itself was read from an invalid HTML file.) Illustration of the e

Re: [Rd] Package installation and path.package

2013-09-09 Thread Simon Urbanek
On Sep 9, 2013, at 4:22 AM, Simon Zehnder wrote: > Dear R-Devels, > > I am writing right now my own package that makes use of 'tempfile' and there > within with 'path.package'. When I install it, I get the error: Error in > path.package("mypackage") : none of the packages are loaded. Here is t

Re: [Rd] Package installation and path.package

2013-09-09 Thread Simon Urbanek
On Sep 9, 2013, at 9:26 AM, Simon Urbanek wrote: > > On Sep 9, 2013, at 4:22 AM, Simon Zehnder wrote: > >> Dear R-Devels, >> >> I am writing right now my own package that makes use of 'tempfile' and there >> within with 'path.package'. BTW: if it's truly a temporary file, that that is a real

Re: [Rd] Package installation and path.package

2013-09-09 Thread Dirk Eddelbuettel
On 9 September 2013 at 09:26, Simon Urbanek wrote: | On Sep 9, 2013, at 4:22 AM, Simon Zehnder wrote: | > I am writing right now my own package that makes use of 'tempfile' and | > there within with 'path.package'. When I install it, I get the error: Error | > in path.package("mypackage") : none o

Re: [Rd] Comments requested on "changedFiles" function

2013-09-09 Thread Duncan Murdoch
Thanks for everyone's comments on this. I have now committed a version to R-devel. I don't plan to backport it to 3.0.2 (coming out in a couple of weeks), but it should appear in 3.1.0 in the spring, and it's conceivable it could make it into 3.0.3 (not yet scheduled). Duncan Murdoch __

Re: [Rd] Invalid UTF-8 with gsub(perl=TRUE) and iconv(sub="")

2013-09-09 Thread Milan Bouchet-Valat
Le lundi 09 septembre 2013 à 13:59 +0100, Prof Brian Ripley a écrit : > On 09/09/2013 09:49, Milan Bouchet-Valat wrote: > > Hi! > > > > I experience an error with an invalid UTF-8 character passed to > > gsub(..., perl=TRUE); the interesting point is that with perl=FALSE (the > > default) no error

[Rd] How to get R cmd to check Fortran array bounds

2013-09-09 Thread Marian Talbert
I'm trying to get the this Fortran array bounds check to run on my code as my package has been rejected for failing this test. I read writing R extensions and it appears to run this test I should use a Makevars file with one of the following two flags depending on my compiler: FCFLAGS = -g -O2 -m

Re: [Rd] Invalid UTF-8 with gsub(perl=TRUE) and iconv(sub="")

2013-09-09 Thread Simon Urbanek
On Sep 9, 2013, at 12:46 PM, Milan Bouchet-Valat wrote: > Le lundi 09 septembre 2013 à 13:59 +0100, Prof Brian Ripley a écrit : >> On 09/09/2013 09:49, Milan Bouchet-Valat wrote: >>> Hi! >>> >>> I experience an error with an invalid UTF-8 character passed to >>> gsub(..., perl=TRUE); the interest

Re: [Rd] "False" warning on "replacing previous import" when re-exporting identical object

2013-09-09 Thread Henrik Bengtsson
Any intelligent comments on this before I submit a proposal/patch via bugs.r-project.org? /Henrik On Fri, Aug 30, 2013 at 12:47 PM, Henrik Bengtsson wrote: > On Fri, Aug 30, 2013 at 11:51 AM, Henrik Bengtsson > wrote: >> Hi. >> >> On Fri, Aug 30, 2013 at 6:58 AM, Paul Gilbert wrote: >>> This

Re: [Rd] missing documentation entries ... WARNING

2013-09-09 Thread Duncan Murdoch
On 09/09/2013 3:23 PM, Luis Rodríguez wrote: Dear R-devel, I am a relative novice in R, but I am eager to post a new package my group developed in CRAN, but I am stumped by a set of documentation related warnings created by R CMD check. So, my current plan is to recreate the documentation by

Re: [Rd] Invalid UTF-8 with gsub(perl=TRUE) and iconv(sub="")

2013-09-09 Thread Milan Bouchet-Valat
Le lundi 09 septembre 2013 à 13:41 -0400, Simon Urbanek a écrit : > On Sep 9, 2013, at 12:46 PM, Milan Bouchet-Valat wrote: > > > Le lundi 09 septembre 2013 à 13:59 +0100, Prof Brian Ripley a écrit : > >> On 09/09/2013 09:49, Milan Bouchet-Valat wrote: > >>> Hi! > >>> > >>> I experience an error

[Rd] Is it possible to tell 'R CMD check' to accept certain filenames starting with a period?

2013-09-09 Thread Henrik Bengtsson
I a few of my packages I'd like to be able to add files starting with a period that installs with the package, e.g. inst/configs/.BatchJobs.R. Currently [R Under development (unstable) (2013-09-08 r63880)], R CMD check --as-cran complaints about this as: * checking for hidden files and directori

[Rd] missing documentation entries ... WARNING

2013-09-09 Thread Luis Rodríguez
Dear R-devel, I am a relative novice in R, but I am eager to post a new package my group developed in CRAN, but I am stumped by a set of documentation related warnings created by R CMD check. So, my current plan is to recreate the documentation by religiously applying and modifying the skeleto

Re: [Rd] How to get R cmd to check Fortran array bounds

2013-09-09 Thread Prof Brian Ripley
On 09/09/2013 21:31, Marian Talbert wrote: I'm trying to get the this Fortran array bounds check to run on my code as my package has been rejected for failing this test. I read writing R extensions and it appears to run this test I should use a Makevars file with one of the following two flags d