Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdatePackages function with UNC paths #147

Open
leemhmark opened this issue Mar 28, 2022 · 1 comment
Open

UpdatePackages function with UNC paths #147

leemhmark opened this issue Mar 28, 2022 · 1 comment

Comments

@leemhmark
Copy link

leemhmark commented Mar 28, 2022

Hello,

Can the UpdatePackages() function take UNC paths as its path perimeter? I tried to pass a UNC path this way:

path = '\\\\sample-location.net\\repo;
updatePackages(path = path, ...)

It always gives me this error:

Error in read.dcf(file = tmpf) : cannot open the connection
In addition: Warning message:
In read.dcf(file = tmpf) :
  cannot open compressed file '/\\sample-location.net/repo/cran/bin/windows/contrib/3.5/PACKAGES', probable reason 'No such file or directory'

However if I map the network drive location \\sample-location.net to a drive (eg, Z:) and use the drive as the path the function would work:

path = Z:\\repo;
updatePackages(path = path, ...)`

I'm trying to automate this script using a scheduler and it requires all paths in the script to be called using UNC paths, so I need to figure out whether this function can work with UNC paths at all.

@andrie
Copy link
Owner

andrie commented Mar 24, 2024

Suggestions for how to implement this are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants