search for: kevinushey

Displaying 20 results from an estimated 84 matches for "kevinushey".

2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
On 12/03/2023 6:07 a.m., Sebastian Martin Krantz wrote: > Thinking more about this, and seeing Kevins examples at > https://github.com/kevinushey/dotty > <https://github.com/kevinushey/dotty>, I think this is the most R-like > way of doing it, > with an additional benefit as it would allow to introduce the useful > data.table semantics DT[, .(a = b, c, d)] to more general R. So I would > propose to > introduce a n...
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
...addition to the language. Best regards, Sebastian On Sun 12. Mar 2023 at 13:18, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 12/03/2023 6:07 a.m., Sebastian Martin Krantz wrote: > > Thinking more about this, and seeing Kevins examples at > > https://github.com/kevinushey/dotty > > <https://github.com/kevinushey/dotty>, I think this is the most R-like > > way of doing it, > > with an additional benefit as it would allow to introduce the useful > > data.table semantics DT[, .(a = b, c, d)] to more general R. So I would > > propose...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...bastian > > > On Sun 12. Mar 2023 at 13:18, Duncan Murdoch > <murdoch.duncan at gmail.com> > wrote: > > > On 12/03/2023 6:07 a.m., Sebastian Martin Krantz wrote: > > > Thinking more about this, and seeing Kevins examples at > > > https://github.com/kevinushey/dotty > > > <https://github.com/kevinushey/dotty>, I think this is the most > > > R-like > > > way of doing it, > > > with an additional benefit as it would allow to introduce the > > > useful > > > data.table semantics DT[, .(a = b, c, d)...
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
...t;> On Sun 12. Mar 2023 at 13:18, Duncan Murdoch >> <murdoch.duncan at gmail.com> >> wrote: >> >>> On 12/03/2023 6:07 a.m., Sebastian Martin Krantz wrote: >>>> Thinking more about this, and seeing Kevins examples at >>>> https://github.com/kevinushey/dotty >>>> <https://github.com/kevinushey/dotty>, I think this is the most >>>> R-like >>>> way of doing it, >>>> with an additional benefit as it would allow to introduce the >>>> useful >>>> data.table semantics DT[, .(...
2023 Mar 12
2
Multiple Assignment built into the R Interpreter?
...it?s a remarkable effort, and I wouldn?t mind such semantics e.g. making it a function call to ?.[? or any other one-letter function, as long as it?s coded in C and recognized by the interpreter as an assignment operation. Best regards, Sebastian On Sun 12. Mar 2023 at 01:00, Kevin Ushey <kevinushey at gmail.com> wrote: > FWIW, it's possible to get fairly close to your proposed semantics > using the existing metaprogramming facilities in R. I put together a > prototype package here to demonstrate: > > https://github.com/kevinushey/dotty > > The package exports...
2019 Apr 13
4
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
On Sat, 13 Apr 2019 at 03:51, Kevin Ushey <kevinushey at gmail.com> wrote: > > I think it's worth saying that mclapply() works as documented Mostly, yes. But it says nothing about fork's copy-on-write and memory overcommitment, and that this means that it may work nicely or fail spectacularly depending on whether, e.g., you operate o...
2015 Aug 25
1
Issues with libcurl + HTTP status codes (eg. 403, 404)
...options(download.file.method = "libcurl") > options(repos = c(CRAN = "https://cran.rstudio.com/", CRANextra = + "http://www.stats.ox.ac.uk/pub/RWin")) > install.packages("lattice") ## could be any package Installing package into ?/Users/kevinushey/Library/R/3.3/library? (as ?lib? is unspecified) Error: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed! > sessionInfo() R Under development (unstable) (2015-08-14 r69078) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.10.4 (Yosemite) I...
2016 Jul 29
2
strange behavior in 'inherits' check for loaded S4 object
...t;digest" %in% loadedNamespaces() [1] TRUE > "package:digest" %in% search() [1] FALSE This may be intentional, but the behavior seems surprising and could be responsible for the behavior outlined earlier. Best, Kevin On Fri, Jul 29, 2016 at 11:37 AM, Kevin Ushey <kevinushey at gmail.com> wrote: > I have a small idea as to what's going on now; at least, why exporting > the class resolves this particular issue. > > Firstly, when an S4 class is not exported, the associated > '.__C__<class>' object is not made part of the package enviro...
2016 Jul 31
2
strange behavior in 'inherits' check for loaded S4 object
...ed class would create a "local" version of the generic, but that would likely raise some other issues. But seems like a useful topic for discussion. John On Jul 30, 2016, at 11:07 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: >>>>>> Kevin Ushey <kevinushey at gmail.com> >>>>>> on Fri, 29 Jul 2016 11:46:19 -0700 writes: > >> I should add one more item that may be related here -- >> calling 'methods:::.requirePackage' returns a different >> result based on whether the package namespace is already &g...
2016 Jun 25
2
strange behavior in 'inherits' check for loaded S4 object
...king whether an S4 object inherits from a parent class defined from another package with 'inherits' fails if that object is materialized through a call to 'load'. That's a mouthful, so I've put together a relatively small reproducible example online here: https://github.com/kevinushey/s4inherits This package, 's4inherits', defines an S4 class, 'SubMatrix', that inherits from the 'dsyMatrix' class defined in the Matrix package. After installing the package, I run some simple tests: $ R -f test-save.R > library(s4inherits) > data <- SubMatrix(1)...
2016 Jul 30
0
strange behavior in 'inherits' check for loaded S4 object
>>>>> Kevin Ushey <kevinushey at gmail.com> >>>>> on Fri, 29 Jul 2016 11:46:19 -0700 writes: > I should add one more item that may be related here -- > calling 'methods:::.requirePackage' returns a different > result based on whether the package namespace is already > l...
2020 Apr 27
2
Rtools and R 4.0.0?
...check_flavors.html Instructions and installers for rtools40 are available at the usual location: https://cran.r-project.org/bin/windows/Rtools/ . Suggestions for improving the documentation can be posted here: https://github.com/r-windows/docs On Tue, Apr 7, 2020 at 6:07 PM Kevin Ushey <kevinushey at gmail.com> wrote: > > That's great to see, although I suspect it's still a speculative > change and could be backed out if any non-trivial issues were > encountered. > > Regardless, I would like to thank R core, CRAN, and Jeroen for all of > the time that has gone...
2024 Jul 06
1
API for converting LANGSXP to LISTSXP?
On Fri, 5 Jul 2024 15:27:50 +0800 Kevin Ushey <kevinushey at gmail.com> wrote: > A common idiom in the R sources is to convert objects between LANGSXP > and LISTSXP by using SET_TYPEOF. However, this is soon going to be > disallowed in packages. Would you mind providing an example where a package needs to take an existing LISTSXP and convert...
2014 Jul 01
0
USE_CXX1X, Snow Leopard R binaries + Mavericks
...d CRAN build of R. Is this the expected behaviour? IIUC, Snow Leopard binaries are built with older compilers and hence we might not expect this to even work were CXX or CXX1X propagated (ie, grabbing the Mavericks clang / clang++). Comments on this in R-exts would be greatly appreciated as well. kevinushey at s-169-232-64-218:~$ R --vanilla --slave -e "sessionInfo()" R version 3.1.0 (2014-04-10) Platform: x86_64-apple-darwin10.8.0 (64-bit) locale: [1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets...
2016 Jul 20
2
package installation fails when symlink of same name exists
>>>>> Jeroen Ooms <jeroenooms at gmail.com> >>>>> on Wed, 20 Jul 2016 10:26:19 +0200 writes: > On Tue, Jul 19, 2016 at 6:46 PM, Kevin Ushey <kevinushey at gmail.com> wrote: >> R fails to install a package from source over a pre-existing package >> when the path to that package is a symlink, rather than a directory. >> ... >> I don't think anyone's reported this being an issue before > I ra...
2016 Aug 02
0
strange behavior in 'inherits' check for loaded S4 object
..." version of the generic, but that would likely raise some other issues. > > But seems like a useful topic for discussion. > > John > > On Jul 30, 2016, at 11:07 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>>> Kevin Ushey <kevinushey at gmail.com> >>>>>>> on Fri, 29 Jul 2016 11:46:19 -0700 writes: >> >>> I should add one more item that may be related here -- >>> calling 'methods:::.requirePackage' returns a different >>> result based on whether the package name...
2020 Apr 02
5
Rtools and R 4.0.0?
Hello, Has a decision been made yet as to whether R 4.0.0 on Windows is going to be built using the new gcc8 toolchain (described at https://cran.r-project.org/bin/windows/testing/rtools40.html)? >From the sidelines, I can see that the toolchain is being used to build and test packages on CRAN; if there are any remaining issues that I can help to try and run down (either in R or any CRAN
2019 Apr 15
2
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
On Mon, 15 Apr 2019 at 08:44, Tomas Kalibera <tomas.kalibera at gmail.com> wrote: > > On 4/13/19 12:05 PM, I?aki Ucar wrote: > > On Sat, 13 Apr 2019 at 03:51, Kevin Ushey <kevinushey at gmail.com> wrote: > >> I think it's worth saying that mclapply() works as documented > > Mostly, yes. But it says nothing about fork's copy-on-write and memory > > overcommitment, and that this means that it may work nicely or fail > > spectacularly dependin...
2018 Feb 17
1
writeLines argument useBytes = TRUE still making conversions
Of course, right after writing this e-mail I tested on my Windows machine and did not see what I expected: > charToRaw(before) [1] c3 a9 > charToRaw(after) [1] e9 so obviously I'm misunderstanding something as well. Best, Kevin On Sat, Feb 17, 2018 at 2:19 PM, Kevin Ushey <kevinushey at gmail.com> wrote: > From my understanding, translation is implied in this line of ?file (from the > Encoding section): > > The encoding of the input/output stream of a connection can be specified > by name in the same way as it would be given to iconv: see that help pag...
2018 Feb 15
2
writeLines argument useBytes = TRUE still making conversions
On Thu, Feb 15, 2018 at 11:19 AM, Kevin Ushey <kevinushey at gmail.com> wrote: > I suspect your UTF-8 string is being stripped of its encoding before > write, and so assumed to be in the system native encoding, and then > re-encoded as UTF-8 when written to the file. You can see something > similar with: > > > tmp <- '?&...