Displaying 14 results from an estimated 14 matches for "ecortens".
Did you mean:
cortens
2016 Sep 26
2
Recursive dir.create() on Windows shares
Hi folks,
I've noticed that there's an issue with the recursive creation of
directories that reside on network shares. For example:
>
dir.create('\\\\SERVERNAME\\Empl\\Home1\\active\\e\\ecortens\\thisisatest',
recursive = TRUE)
Warning message:
In
dir.create("\\\\SERVERNAME\\Empl\\Home1\\active\\e\\ecortens\\thisisatest",
:
cannot create dir '\\SERVERNAME\Empl', reason 'Permission denied'
The issue is that dir.create() is skipping the server name, but it...
2016 Sep 26
0
Recursive dir.create() on Windows shares
On 26/09/2016 5:27 PM, Evan Cortens wrote:
> Hi folks,
>
> I've noticed that there's an issue with the recursive creation of
> directories that reside on network shares. For example:
>
>>
> dir.create('\\\\SERVERNAME\\Empl\\Home1\\active\\e\\ecortens\\thisisatest',
> recursive = TRUE)
> Warning message:
> In
> dir.create("\\\\SERVERNAME\\Empl\\Home1\\active\\e\\ecortens\\thisisatest",
> :
> cannot create dir '\\SERVERNAME\Empl', reason 'Permission denied'
>
> The issue is that dir.create(...
2017 May 23
2
Inconsistency in handling of numeric input with %d by sprintf
...ic(c(1,NA)))
[1] "1" "NA"
So the safest thing is indeed passing the right type, but the behaviour is
indeed confusing. I checked this on both Windows and Debian, and on both
systems I get the exact same response.
Cheers
Joris
On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca> wrote:
> Hi Michael,
>
> I posted something on this topic to R-devel several weeks ago, but never
> got a response. My ultimate conclusion is that sprintf() isn't super
> consistent in how it handles coercion: sometimes it'll coerce real to
> integer wit...
2016 Nov 30
1
problem with normalizePath()
...essage-----
> From: Martin Maechler [mailto:maechler at stat.math.ethz.ch]
> Sent: Friday, November 18, 2016 3:37 PM
> To: Evan Cortens
> Cc: Laviolette, Michael; r-devel at r-project.org
> Subject: Re: [Rd] problem with normalizePath()
>
> >>>>> Evan Cortens <ecortens at mtroyal.ca>
> >>>>> on Thu, 17 Nov 2016 15:51:03 -0700 writes:
>
> > I wonder if this could be related to the issue that I
> > submitted to bugzilla about two months ago? (
> > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159)
&...
2017 May 23
2
Inconsistency in handling of numeric input with %d by sprintf
...thing is indeed passing the right type, but the behaviour
>> is indeed confusing. I checked this on both Windows and Debian, and on both
>> systems I get the exact same response.
>>
>> Cheers
>> Joris
>>
>> On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca>
>> wrote:
>>
>>> Hi Michael,
>>>
>>> I posted something on this topic to R-devel several weeks ago, but never
>>> got a response. My ultimate conclusion is that sprintf() isn't super
>>> consistent in how it handles coer...
2016 Nov 18
2
problem with normalizePath()
>>>>> Evan Cortens <ecortens at mtroyal.ca>
>>>>> on Thu, 17 Nov 2016 15:51:03 -0700 writes:
> I wonder if this could be related to the issue that I
> submitted to bugzilla about two months ago? (
> https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159)
> That is to say,...
2017 May 23
0
Inconsistency in handling of numeric input with %d by sprintf
...uot;
>
> So the safest thing is indeed passing the right type, but the behaviour is
> indeed confusing. I checked this on both Windows and Debian, and on both
> systems I get the exact same response.
>
> Cheers
> Joris
>
> On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca> wrote:
>
>> Hi Michael,
>>
>> I posted something on this topic to R-devel several weeks ago, but never
>> got a response. My ultimate conclusion is that sprintf() isn't super
>> consistent in how it handles coercion: sometimes it'll coerce...
2016 Nov 30
0
problem with normalizePath()
...2) # works
-----Original Message-----
From: Martin Maechler [mailto:maechler at stat.math.ethz.ch]
Sent: Friday, November 18, 2016 3:37 PM
To: Evan Cortens
Cc: Laviolette, Michael; r-devel at r-project.org
Subject: Re: [Rd] problem with normalizePath()
>>>>> Evan Cortens <ecortens at mtroyal.ca>
>>>>> on Thu, 17 Nov 2016 15:51:03 -0700 writes:
> I wonder if this could be related to the issue that I
> submitted to bugzilla about two months ago? (
> https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159)
> That is to say,...
2017 May 23
0
Inconsistency in handling of numeric input with %d by sprintf
...right type, but the behaviour
>>> is indeed confusing. I checked this on both Windows and Debian, and on both
>>> systems I get the exact same response.
>>>
>>> Cheers
>>> Joris
>>>
>>> On Tue, May 23, 2017 at 4:53 PM, Evan Cortens <ecortens at mtroyal.ca>
>>> wrote:
>>>
>>>> Hi Michael,
>>>>
>>>> I posted something on this topic to R-devel several weeks ago, but never
>>>> got a response. My ultimate conclusion is that sprintf() isn't super
>>>> consi...
2017 May 19
2
Inconsistency in handling of numeric input with %d by sprintf
Consider
#as.numeric for emphasis
sprintf('%d', as.numeric(1))
# [1] "1"
vs.
sprintf('%d', NA_real_)
> Error in sprintf("%d", NA_real_) :
invalid format '%d'; use format %f, %e, %g or %a for numeric object
>
I understand the error is correct, but if it works for other numeric input,
why doesn't R just coerce NA_real_ to NA_integer_?
2016 Nov 17
2
problem with normalizePath()
The packages "readxl" and "haven" (and possibly others) no longer access files on shared network drives. The problem appears to be in the normalizePath() function. The file can be read from a local drive or by functions that don't call normalizePath(). The error thrown is
Error: path[1]="\\Hzndhhsvf2/data/OCPH/EPI/BHSDM/Group/17.xls": The system cannot find the
2016 Nov 17
0
problem with normalizePath()
I wonder if this could be related to the issue that I submitted to bugzilla
about two months ago? (
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17159)
That is to say, could it be that it's treating the first path after the
single backslash as an actual directory, rather than as the name of the
share?
--
Evan Cortens, PhD
Institutional Analyst - Office of Institutional Analysis
2017 Mar 09
0
Possible issue with coercion in sprintf()?
Dear R-Devel folks,
I've just run into what initially struck me as a rather strange result, as
follows:
> sprintf('%d', c(1.0, NA))
[1] "1" "NA"
> sprintf('%d', c(NA, 1.0))
Error in sprintf("%d", c(NA, 1)) :
invalid format '%d'; use format %f, %e, %g or %a for numeric objects
So if I pass sprintf() a vector of reals and attempt
2017 May 23
0
Inconsistency in handling of numeric input with %d by sprintf
Hi Michael,
I posted something on this topic to R-devel several weeks ago, but never
got a response. My ultimate conclusion is that sprintf() isn't super
consistent in how it handles coercion: sometimes it'll coerce real to
integer without complaint, other times it won't. (My particular email had
to do with the vectors longer than 1 and their positioning vis-a-vis the
format string.)