Skip to content
Back to formatted view

Raw Message

Message-ID: <f0308320-b89d-32ee-699e-c4eb625876e5@gmail.com>
Date: 2019-01-11T11:14:49Z
From: Tomas Kalibera
Subject: Inconsistent returned values of normalizePath(NA_character_) on Windows and *nix
In-Reply-To: <CANROs4cjRX5aiyp_pzVyeWPKwQNpmhPD6cveAwU6gBR7b4yKTA@mail.gmail.com>

Thanks for the report, fixed in R-devel (one gets NA_character_ as a 
result and the path is treated as non-existent, so with a warning or 
error when requested via mustWork argument).

Best,
Tomas


On 12/7/18 7:10 PM, Yihui Xie wrote:
> Hi,
>
> I just noticed normalizePath(NA_character_) returns NA_character_ on
> *nix but "%HOME%\\NA" on Windows (with a warning by default), where
> %HOME% denotes the HOME folder like "C:\\Users\\John". I'm not sure if
> this is a bug or by design.
>
> Regards,
> Yihui
> --
> https://yihui.name
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel