Displaying 20 results from an estimated 123 matches for "ushey".
Did you mean:
usher
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....
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
2017 Jan 18
2
unlicense
On Tue, 2017-01-17 at 22:46 -0500, Kevin Ushey wrote:
> It appears that Unlicense is considered a free and GPL-compatible
> license; however, the page does suggest using CC0 instead (which is
> indeed a license approved / recognized by CRAN). CC0 appears to be
> the primary license recommended by the FSF for software intended for
&g...
2015 May 13
4
Alternative for wildcard gnu extension in Makevars
One other solution that's only a little crazy: you could have a R
function within your package that generates the appropriate (portable)
Makevars, and within the package `configure` script call that
function. For example"
R --vanilla --slave -e "source('R/makevars.R'); makevars()"
And that 'makevars()' function could generate portable
2018 Jul 17
2
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
...se clarify the
> example if you believe it is a bug. Please also use current R-devel
> (I've relatively recently fixed a bug in decoding these escaped strings,
> perhaps unlikely, but not impossible it could be related).
>
> Best
> Tomas
>
> On 07/16/2018 10:01 PM, Kevin Ushey wrote:
> > Given the following R script:
> >
> > x <- 1
> > print(list())
> > save(x, file = tempfile())
> > output <- encodeString("apple")
> > print(output)
> >
> > If I source this script from RGui on Windo...
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: se...
2018 Jul 18
1
Output mis-encoded on Windows w/ RGui 3.5.1 in strange case
...te:
> Thanks, I can now reproduce and it is a bug that is easy to fix, I
> will do so shortly.
>
> Fyi it can be reproduced simply by running these two lines in Rgui:
>
> list()
> encodeString("apple")
>
> Best
> Tomas
>
> On 07/17/2018 05:16 PM, Kevin Ushey wrote:
>> Sorry, I should have been more clear -- if I write the contents of
>> that script to a file called 'encoding.R' and source that, then I see
>> the reported behavior.
>>
>> Here's something standalone that you should hopefully be able to copy
>&...
2015 Aug 25
1
Issues with libcurl + HTTP status codes (eg. 403, 404)
...ons(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
...> "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...
2020 Jan 01
2
New R function is.nana = is.na & !is.nan
...g to kindly request new R
function so NA_real_ can be more easily detected.
Currently if one wants to test for NA_real_ (but not NaN) then extra
work has to be done: `is.na(x) & !is.nan(x)`
Required functionality is already at C level so to address my request
there is not that much to do.
Kevin Ushey made a nice summary of current R C api in:
https://stackoverflow.com/a/26262984/2490497
Pasting related part below, extra row added by me is a requested feature.
+---------------------+
| C fun | NaN | NA | R fun
+---------------------+
| ISNAN | t | t | is.na
| R_IsNa...
2016 Jul 31
2
strange behavior in 'inherits' check for loaded S4 object
...non-exported 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 namespac...
2020 Apr 27
2
Rtools and R 4.0.0?
...eb/checks/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 tim...
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 LIST...
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...
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
> > spectac...
2017 Jan 18
1
unlicense
...NA (https://opensource.org/faq#cc-zero)
URL: https://creativecommons.org/publicdomain/zero/1.0/legalcode
FOSS: yes
in the R license db ...
-k
> On Wed, Jan 18, 2017 at 7:23 AM, Brian G. Peterson <brian at braverock.com> wrote:
>>
>> On Tue, 2017-01-17 at 22:46 -0500, Kevin Ushey wrote:
>>> It appears that Unlicense is considered a free and GPL-compatible
>>> license; however, the page does suggest using CC0 instead (which is
>>> indeed a license approved / recognized by CRAN). CC0 appears to be
>>> the primary license recommended by the...
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:
>
> > tm...
2024 Jul 05
2
API for converting LANGSXP to LISTSXP?
Hi,
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. From what I can see, there isn't currently a
direct way to convert between these two object types using the
available API. At the R level, one can convert calls to pairlists
with:
>
2015 Aug 25
3
Issues with libcurl + HTTP status codes (eg. 403, 404)
Hi Martin,
Indeed it does (and I should have confirmed myself with R-patched and
R-devel before posting...)
Thanks, and sorry for the noise.
Kevin
On Tue, Aug 25, 2015, 13:11 Martin Morgan <mtmorgan at fredhutch.org> wrote:
> On 08/25/2015 12:54 PM, Kevin Ushey wrote:
> > Hi all,
> >
> > The following fails for me (on OS X, although I imagine it's the same
> > on other platforms using libcurl):
> >
> > options(download.file.method = "libcurl")
> > options(repos = c(CRAN = "https://cran...
2013 Jan 05
2
lapply (and friends) with data.frames are slow
Hey guys,
I noticed something curious in the lapply call. I'll copy+paste the
function call here because it's short enough:
lapply <- function (X, FUN, ...)
{
FUN <- match.fun(FUN)
if (!is.vector(X) || is.object(X))
X <- as.list(X)
.Internal(lapply(X, FUN))
}
Notice that lapply coerces X to a list if the !is.vector || is.object(X)
check passes.
Curiously,