Displaying 1 result from an estimated 1 matches for "oklib".
Did you mean:
mklib
2005 Mar 02
1
Error on Windows installing package to non-default library
...nvalid backreference 2 in regular expression
After looking at src/library/utils/R/windows/linkhtml.R, it seems the
error is that the "\\2" part of the path is interpreted by gsub as a
back reference.
Changing "\\" to "/" in the library path fixes this issue:
> okLib = chartr("\\", "/", badLib)
> z = .libPaths(okLib)
> z
[1] "c:/badExample/2/foo" "C:/falcon/sw/rw2010dev/library"
> install.packages(pkg, repos=NULL, lib=okLib)
package 'abind' successfully unpacked and MD5 sums checked
updating...