Displaying 5 results from an estimated 5 matches for "ocph".
Did you mean:
cph
2016 Nov 17
2
problem with normalizePath()
...quot;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 file specified
Here's my session:
library(readxl)
library(XLConnect)
# attempting to read file from network drive
df1 <- read_excel("//Hzndhhsvf2/data/OCPH/EPI/BHSDM/Group/17.xls")
# pathname is fully qualified, but error...
2016 Nov 18
2
problem with normalizePath()
...>> 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 file specified
>>
>> Here's my session:
>>
>> library(readxl) library(XLConnect)
>>
>> # attempting to read file from network drive df1 <-
>> read_ex...
2016 Nov 30
1
problem with normalizePath()
...hs
correctly.
Best,
Evan
On Wed, Nov 30, 2016 at 7:16 AM, Laviolette, Michael <
Michael.Laviolette at dhhs.nh.gov> wrote:
> In researching another issue, I discovered a workaround: the network drive
> folder needs to be mapped to the local PC.
>
> setwd("//Hzndhhsvf2/data/OCPH/EPI/BHSDM/Group/Michael Laviolette/Stat
> tools")
> df1 <- readxl::read_excel("addrlist-4-MikeL.xls", 2)
> # fails, throws same error
> df2 <- readxl::read_excel("Z:/Stat tools/addrlist-4-MikeL.xls", 2) #
> works
>
> -----Original M...
2016 Nov 30
0
problem with normalizePath()
In researching another issue, I discovered a workaround: the network drive folder needs to be mapped to the local PC.
setwd("//Hzndhhsvf2/data/OCPH/EPI/BHSDM/Group/Michael Laviolette/Stat tools")
df1 <- readxl::read_excel("addrlist-4-MikeL.xls", 2) # fails, throws same error
df2 <- readxl::read_excel("Z:/Stat tools/addrlist-4-MikeL.xls", 2) # works
-----Original Message-----
F...
2016 Nov 17
0
problem with normalizePath()
...ssibly 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 file specified
>
> Here's my session:
>
> library(readxl)
> library(XLConnect)
>
> # attempting to read file from network drive
> df1 <- read_excel("//Hzndhhsvf2/data/OCPH/EPI/BHSDM/Group/17.xls")...