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

does not work on Windows when library is specified by a UNC path #30

Closed
christophsax opened this issue Feb 1, 2016 · 5 comments
Closed

Comments

@christophsax
Copy link
Collaborator

> library(x13binary)
> checkX13binary(verbose = TRUE)
Error in checkX13binary(verbose = TRUE) : When running

  \\lon-vir-fil-005/homes$/Freyab/R/win-library/3.2/x13binary/bin/x13ashtml.exe

Command Prompt returned the following message:

  '\\lon-vir-fil-005\homes$\Freyab'
  CMD.EXE was started with the above path as the current directory.
  UNC paths are not supported.  Defaulting to Windows directory.
  The filename, directory name or volume label syntax is incorrect.

In addition: Warning message:
running command 'C:\Windows\system32\cmd.exe /c \\lon-vir-fil-005/homes$/Freyab/R/win-library/3.2/x13binary/bin/x13ashtml.exe C:\Users\freyab\AppData\Local\Temp\RtmpO6DzYV/Testairline' had status 1
@christophsax
Copy link
Collaborator Author

This also affects people with previously working versions of seasonal. If you see this after updating, you can go back to the previous version of seasonal:

url <- "https://cran.r-project.org/src/contrib/Archive/seasonal/seasonal_1.1.0.tar.gz"
install.packages(url, repos=NULL, type="source")

@christophsax
Copy link
Collaborator Author

Or better yet, the latest dev version should give you a helpful message that tells you what to do:

devtools::install_github("christophsax/seasonal", ref = "1.2.0.2")
library(seasonal)

In the case above, it will advise you to set your X-13 path as in previous versions, which must be on a local path.

Seems to be a reasonable workaround, I don't think we can do much to support these UNC paths. Seems rather than R is not supporting them, as pointed out in this RStudio post.

@christophsax
Copy link
Collaborator Author

The latest version of seasonal (1.2.1, on CRAN now) should advise you to set your X-13 path as in previous versions, which must be on a local path. To update:

install.packages("seasonal")

@christophsax
Copy link
Collaborator Author

If you want to change your library path to a local path, rather than an UNC path, here is how.

@eddelbuettel
Copy link
Contributor

Indeed. There are in fact a few more questions dealing with R_LIBS_USER.

Also, help(Startup) is the final word on the topic (if almost overly detailed).

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

No branches or pull requests

2 participants