[Rd] as.factor -> S3 generic
Would it be possible to turn as.factor into an S3 generic? It seems to be one of the few coercion methods that aren't already generic. Hadley -- http://had.co.nz/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Rcurl crash in R-devel
Update taking into account the answer of Prof Ripley. ___ Below is a reproducing example that produces the crash. If I do exactly the same in R 3.1.2, it works perfectly. I have the lastest libcurl library (curl @7.40.0) installed So, perhaps indeed that the problem originates from RCurl, but the problem appears only in R 3.2. But before to check more carefully, I would like to know if others have also a problem using the same configuration : MacOS X 10.10.2 and R 3.2 or if it is only for me ? Sincerely, Marc Reproducible example: R Under development (unstable) (2015-02-05 r67741) -- "Unsuffered Consequences" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin13.4.0 (64-bit) > install.packages("RCurl") essai de l'URL 'http://cran.r-project.org/src/contrib/RCurl_1.95-4.5.tar.gz' Content type 'application/x-gzip' length 878607 bytes (858 KB) == downloaded 858 KB * installing *source* package ‘RCurl’ ... ** package ‘RCurl’ correctement décompressé et sommes MD5 vérifiées ## I remove the long list of information for the compilation > library(RCurl) Le chargement a nécessité le package : bitops > # > f = CFILE("Pointe_Noire_Sud.kmz.zip", mode="wb") > curlPerform(url = "http://protomac.org/resources/Pointe_Noire_Sud.kmz.zip";, writedata = f@ref) *** caught segfault *** address 0x0, cause 'memory not mapped' Traceback: 1: .Call("R_curl_easy_perform", curl, .opts, isProtected, .encoding, PACKAGE = "RCurl") 2: curlPerform(url = "http://protomac.org/resources/Pointe_Noire_Sud.kmz.zip";, writedata = f@ref) Le 05/02/2015 10:42, Marc Girondot a écrit : > Hello, > > I don't know if the problem originates from R-devel 3.2 or Rcurl > itself. I post this message to the R-devel list and to the author of > RCurl (dun...@r-project.org). > > > library("RCurl") > Le chargement a nécessité le package : bitops > > print(sessionInfo()) > R Under development (unstable) (2015-02-03 r67717) > Platform: x86_64-apple-darwin13.4.0 (64-bit) > Running under: OS X 10.10.2 (Yosemite) > > locale: > [1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] RCurl_1.95-4.5 bitops_1.0-6 > > > filepath <- > "/Users/marc/Documents/Espace_de_travail_R/package_embryogrowth/embryogrowth/DESCRIPTION" > > urlx <- > "ftp://x:...@max2.ese.u-psud.fr/conservation/embryogrowth/DESCRIPTION"; > > > > > ftpUpload(what=filepath, to=urlx) > > *** caught segfault *** > address 0x0, cause 'memory not mapped' > > Traceback: > 1: .Call("R_curl_easy_perform", curl, .opts, isProtected, > .encoding, PACKAGE = "RCurl") > 2: curlPerform(url = to, upload = TRUE, readfunction = > uploadFunctionHandler(file, asText), ..., curl = curl) > 3: ftpUpload(what = filepath, to = urlx) > > Possible actions: > 1: abort (with core dump, if enabled) > 2: normal R exit > 3: exit R without saving workspace > 4: exit R saving workspace > Selection: > > Hope it will help, > > Sincerely, > > Marc > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- __ Marc Girondot, Pr Laboratoire Ecologie, Systématique et Evolution Equipe de Conservation des Populations et des Communautés CNRS, AgroParisTech et Université Paris-Sud 11 , UMR 8079 Bâtiment 362 91405 Orsay Cedex, France Tel: 33 1 (0)1.69.15.72.30 Fax: 33 1 (0)1.69.15.73.53 e-mail: marc.giron...@u-psud.fr Web: http://www.ese.u-psud.fr/epc/conservation/Marc.html Skype: girondot [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Documentation for reg.finalizer
Documentation says (emphasis mine): "Registers an R function to be called upon garbage collection of object OR (optionally) at the end of an R session." Should this say "and" and not "or"? THK -- http://www.keittlab.org/ [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Rcurl crash in R-devel
This behavior didn't replicate for me on Linux (Ubuntu 14.04) with a freshly updated and built R-devel. ~G On Fri, Feb 6, 2015 at 12:14 PM, Marc Girondot wrote: > Update taking into account the answer of Prof Ripley. > ___ > > Below is a reproducing example that produces the crash. > If I do exactly the same in R 3.1.2, it works perfectly. > > I have the lastest libcurl library (curl @7.40.0) installed > > So, perhaps indeed that the problem originates from RCurl, but the > problem appears only in R 3.2. > > But before to check more carefully, I would like to know if others have > also a problem using the same configuration : MacOS X 10.10.2 and R 3.2 > or if it is only for me ? > > Sincerely, > > Marc > > Reproducible example: > R Under development (unstable) (2015-02-05 r67741) -- "Unsuffered > Consequences" > Copyright (C) 2015 The R Foundation for Statistical Computing > Platform: x86_64-apple-darwin13.4.0 (64-bit) > > > install.packages("RCurl") > essai de l'URL > 'http://cran.r-project.org/src/contrib/RCurl_1.95-4.5.tar.gz' > Content type 'application/x-gzip' length 878607 bytes (858 KB) > == > downloaded 858 KB > > * installing *source* package ‘RCurl’ ... > ** package ‘RCurl’ correctement décompressé et sommes MD5 vérifiées > > ## I remove the long list of information for the compilation > > > library(RCurl) > Le chargement a nécessité le package : bitops > > # > > f = CFILE("Pointe_Noire_Sud.kmz.zip", mode="wb") > > curlPerform(url = > "http://protomac.org/resources/Pointe_Noire_Sud.kmz.zip";, writedata = > f@ref) > > *** caught segfault *** > address 0x0, cause 'memory not mapped' > > Traceback: > 1: .Call("R_curl_easy_perform", curl, .opts, isProtected, > .encoding, PACKAGE = "RCurl") > 2: curlPerform(url = > "http://protomac.org/resources/Pointe_Noire_Sud.kmz.zip";, writedata = > f@ref) > > > > > Le 05/02/2015 10:42, Marc Girondot a écrit : > > Hello, > > > > I don't know if the problem originates from R-devel 3.2 or Rcurl > > itself. I post this message to the R-devel list and to the author of > > RCurl (dun...@r-project.org). > > > > > library("RCurl") > > Le chargement a nécessité le package : bitops > > > print(sessionInfo()) > > R Under development (unstable) (2015-02-03 r67717) > > Platform: x86_64-apple-darwin13.4.0 (64-bit) > > Running under: OS X 10.10.2 (Yosemite) > > > > locale: > > [1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8 > > > > attached base packages: > > [1] stats graphics grDevices utils datasets methods base > > > > other attached packages: > > [1] RCurl_1.95-4.5 bitops_1.0-6 > > > > > filepath <- > > > "/Users/marc/Documents/Espace_de_travail_R/package_embryogrowth/embryogrowth/DESCRIPTION" > > > urlx <- > > " > ftp://x:...@max2.ese.u-psud.fr/conservation/embryogrowth/DESCRIPTION > " > > > > > > > ftpUpload(what=filepath, to=urlx) > > > > *** caught segfault *** > > address 0x0, cause 'memory not mapped' > > > > Traceback: > > 1: .Call("R_curl_easy_perform", curl, .opts, isProtected, > > .encoding, PACKAGE = "RCurl") > > 2: curlPerform(url = to, upload = TRUE, readfunction = > > uploadFunctionHandler(file, asText), ..., curl = curl) > > 3: ftpUpload(what = filepath, to = urlx) > > > > Possible actions: > > 1: abort (with core dump, if enabled) > > 2: normal R exit > > 3: exit R without saving workspace > > 4: exit R saving workspace > > Selection: > > > > Hope it will help, > > > > Sincerely, > > > > Marc > > > > __ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > > -- > __ > Marc Girondot, Pr > > Laboratoire Ecologie, Systématique et Evolution > Equipe de Conservation des Populations et des Communautés > CNRS, AgroParisTech et Université Paris-Sud 11 , UMR 8079 > Bâtiment 362 > 91405 Orsay Cedex, France > > Tel: 33 1 (0)1.69.15.72.30 Fax: 33 1 (0)1.69.15.73.53 > e-mail: marc.giron...@u-psud.fr > Web: http://www.ese.u-psud.fr/epc/conservation/Marc.html > Skype: girondot > > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Gabriel Becker, PhD Computational Biologist Bioinformatics and Computational Biology Genentech, Inc. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Documentation for reg.finalizer
On 06/02/2015 3:46 PM, Tim Keitt wrote: > Documentation says (emphasis mine): > > "Registers an R function to be called upon garbage collection of > object OR (optionally) at the end of an R session." > > Should this say "and" and not "or"? > > THK > No. "Or" in English is in the context the "inclusive or", not the "exclusive or". The function will only be called once, either when the object is garbage collected, or (if the option is selected) at the end of the session. Duncan Murdoch __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel