search for: shortpathname

Displaying 8 results from an estimated 8 matches for "shortpathname".

2015 Oct 04
2
Conditional importFrom (roxygen?)
Folks: I am getting a build failure when I: #' @importFrom utils shortPathName which roxygenizes it to the NAMESPACE. I suspect this is because this particular function is Windows-only, but I'm a bit confused how I should "properly" importFrom a function like this so it doesn't cause a build failure, but I don't get a note in my R CMD CHECK if I DON...
2015 Oct 04
0
Conditional importFrom (roxygen?)
On 04/10/2015 10:10 AM, Jonathan Greenberg wrote: > Folks: > > I am getting a build failure when I: > #' @importFrom utils shortPathName > > which roxygenizes it to the NAMESPACE. > > I suspect this is because this particular function is Windows-only, but I'm > a bit confused how I should "properly" importFrom a function like this so > it doesn't cause a build failure, but I don't get a note...
2008 Apr 09
1
Windows problem related to using shortPathName for Sweave style file
In the process of updating R to R 2.7 alpha or R 2.7 beta for the BioConductor 2.2 builds on Windows, I have hit a snag because the BioC build system has long path names (e.g. D:\biocbld\bbs-2.2-bioc\R) and these path names are not resolving properly by MiKTeX 2.7 during vignette construction. Take, for example, the attached vignette from Biobase, Bioconductor.Rnw. I have built R from source
2007 Mar 31
1
Too long pathname in bitmap() crashes R on WinXP
...-25 r40958) and R version 2.5.0 alpha (2007-03-30 r40957). I cannot reproduce it on Linux. REPRODUCIBLE EXAMPLE: % Rterm --vanilla # Tell R where Ghostscript is gsexe <- "C:/gs/gs8.54/bin/gswin32c.exe"; gsexe <- "C:/Program Files/gs/gs8.56/bin/gswin32c.exe"; gsexe <- shortPathName(gsexe); Sys.putenv("R_GSCMD"=gsexe); # Total length of pathname (R crashes when it is too long) n <- 130; # Output path path <- tempdir(); # Filename name <- paste(rep("a", n-5-nchar(path)), collapse=""); filename <- paste(name, "png", sep=&quo...
2009 May 22
2
Returning only a file path on Windows
I am choosing a file like this: #Bring up file selection box fn<-file.choose() fp<-file.path(fn,fsep='\\') Unfortunately, the file path contains the short file name and extension as well. I had hoped to get only the path so I could make my own long filenames (for output graphs) by concatenation with this file path. Of course I can split the string and assemble the components from
2011 May 31
1
how to tell if two file paths refer to the same file
Does R have a standard function that takes two file paths (e.g., "./myDirectory/file" and "myDirectory/file") and returns TRUE if those paths refer to the same file? The paths make take different routes ("absolute" or relative paths or via different symbolic or hard links) to the same file or may use different naming conventions (Windows or DOS 8.3 on Windows). If
2014 May 06
2
R crash using Sys.which on Windows
Dear list, When installing the latest version of Rtools (3.1.0.1942) into a path that contains more than 96 characters on Windows 7 64-bit, e.g. into C:\TheLatestRtoolsInAPathWithMoreThanNinetySixCharactersWillCrashTheRSessionUponCallingTheSysWhichFunctionInRToGetTheGccPath and assuming that the Rtools bin paths have been appropriately added to the PATH environment variable as in
2011 Jul 24
4
inline/Rcpp: Problem with space in path under Windows
I am trying to run inline/Rcpp under Windows 64. The RTools are installed on a spaceless path D:\rtools. Inlining pure c-code works perfectly. When I try the sample code for cpp in the cxx Documentation, I get: x86_64-w64-mingw32-g++.exe: C:/Program: No such file or directory The path to the compiler is correct. Obviously there is some problem with the space in C:/Program (Files). Any ideas