Skip to content
Prev 60681 / 63421 Next

available.packages function and UNC paths

On 4/21/22 21:05, Kevin Ushey wrote:
Thanks, Kevin, for the nice repro and for checking that 
available.packages() actually handles the UNC path correctly (the 
4-slash form).

The 2-slash form works as well:

uncpath <- paste0("file://localhost/c$", substring(repopath, 3L))

The form Mark observed doesn't, but from my reading it is not a valid one:

uncpath <- paste0("file://\\\\localhost\\c$", substring(repopath, 3L))

Best
Tomas

https://en.wikipedia.org/wiki/File_URI_scheme
https://datatracker.ietf.org/doc/html/rfc8089#appendix-E.3