search for: isdir

Displaying 20 results from an estimated 107 matches for "isdir".

Did you mean: eisdir
2019 Apr 25
2
Questions/suggestions about new staged installation
...While in another terminal I install CRAN package abc with: ? R CMD INSTALL abc_2.1.tar.gz All deps are already installed. ## With R 3.5 When installing abc the first time with R 3.5 inotifywait reports the following events: 2019-04-24 16:57:42 -- /home/hpages/R/R-3.5.r75051/library/ CREATE,ISDIR 00LOCK-abc 2019-04-24 16:57:42 -- /home/hpages/R/R-3.5.r75051/library/ CREATE,ISDIR abc 2019-04-24 16:57:45 -- /home/hpages/R/R-3.5.r75051/library/ DELETE,ISDIR 00LOCK- Then on subsequent times: 2019-04-24 16:58:14 -- /home/hpages/R/R-3.5.r75051/library/ CREATE,ISDIR 00LOCK-abc 2019-04-24 16:5...
2019 Apr 25
1
Questions/suggestions about new staged installation
...LL abc_2.1.tar.gz >> >> All deps are already installed. >> >> ## With R 3.5 >> >> When installing abc the first time with R 3.5 inotifywait reports the >> following events: >> >> 2019-04-24 16:57:42 -- /home/hpages/R/R-3.5.r75051/library/ CREATE,ISDIR >> 00LOCK-abc >> 2019-04-24 16:57:42 -- /home/hpages/R/R-3.5.r75051/library/ >> CREATE,ISDIR abc >> 2019-04-24 16:57:45 -- /home/hpages/R/R-3.5.r75051/library/ DELETE,ISDIR >> 00LOCK- >> >> Then on subsequent times: >> >> 2019-04-24 16:58:14 --...
2019 Apr 25
0
Questions/suggestions about new staged installation
...abc with: > > ? R CMD INSTALL abc_2.1.tar.gz > > All deps are already installed. > > ## With R 3.5 > > When installing abc the first time with R 3.5 inotifywait reports the > following events: > > 2019-04-24 16:57:42 -- /home/hpages/R/R-3.5.r75051/library/ CREATE,ISDIR > 00LOCK-abc > 2019-04-24 16:57:42 -- /home/hpages/R/R-3.5.r75051/library/ CREATE,ISDIR abc > 2019-04-24 16:57:45 -- /home/hpages/R/R-3.5.r75051/library/ DELETE,ISDIR > 00LOCK- > > Then on subsequent times: > > 2019-04-24 16:58:14 -- /home/hpages/R/R-3.5.r75051/library/ CREA...
2005 Apr 29
2
Windows List of Folders?
For windows, how can I list only the folders in some folder? I was thinking that dir() and file.info() with isdir==TRUE being something that might work. These folders or directories are numerically named with no dot extension names or other characters. Typically, these are 3132, 3334, ... Here is what I tried. The last line is where I need more work. pData="C:/Myfiles/R/Data/" setwd (pData) x &l...
2004 Dec 13
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...eio/base/by_handle_file_information_str.asp) from windows instead of the unix stuff in getStatusInfo: --- (excerpt start) ------------- info.fileSize = buf.st_size; info.modTime.fromEpochTime(buf.st_mtime); info.mode = buf.st_mode; info.user = buf.st_uid; info.group = buf.st_gid; info.isDir = S_ISDIR(buf.st_mode); if (info.isDir && path[path.length()-1] != '/') path += '/'; --- (excerpt end) ------------- The getStatusInfo is used in the code of gccld and is missing in win32 Path.cpp file. Henrik. ======================================================...
2004 Dec 14
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...oes it need one. Reid Spencer wrote: >Henrik, > >modTime.fromWin32Time(ftLastWriteTime); > Note that you'll need write a "fromWin32Time" for the TimeValue > class to make the conversion of ftLastWriteTime to TimeValue's > notion of normalized time. > >isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; > >fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); > >The mode, user, and group fields aren't applicabe to Win32 so just set >them as follows (to avoid Unix issues): > >user = 9999; >group = 9999; &gt...
2010 Aug 12
5
Where the data file is stored?
Hi folks, OS - Ubuntu 10.04 On R I create a datafile named "data". I can evoke it on R with; > data On R Commander Data -> Active data set -> Select active data set -> (data) OK only one data set there "data" -> View data set I can read it -> Edit data set showing 25 rows of data. Clicking the box shows a thick border around it. But I couldn't
2012 Oct 31
1
Strange compiling behaviour
Compiling this little function gets me some strange behaviour .initDataDir <- function(){ if(file.exists(LOCATION)) { if(as.logical(file.info(LOCATION)["isdir"]))return stop(LOCATION, " exists but is not a directory") } Z <- dir.create(LOCATION) if(!Z){ stop(geterrmessage()) ## stop("Juggel") } return(Z) } > .initDataDir <- function(){ + if(file.exists(LOCATION)) { + if(as.logical(file.inf...
2011 Mar 05
1
file mode lost in file.copy()?
Hi, Recently I noticed file.copy() would discard the file mode information. Is this the expected behaviour or a bug for file.copy()? > file.create('testfile') [1] TRUE > file.info('testfile') size isdir mode mtime ctime testfile 0 FALSE 644 2011-03-05 17:06:39 2011-03-05 17:06:39 atime uid gid uname grname testfile 2011-03-05 17:06:40 1000 1000 yihui yihui > Sys.chmod('testfile', '0755') > file.info('testfile'...
2011 Mar 05
1
file mode lost in file.copy()?
Hi, Recently I noticed file.copy() would discard the file mode information. Is this the expected behaviour or a bug for file.copy()? > file.create('testfile') [1] TRUE > file.info('testfile') size isdir mode mtime ctime testfile 0 FALSE 644 2011-03-05 17:06:39 2011-03-05 17:06:39 atime uid gid uname grname testfile 2011-03-05 17:06:40 1000 1000 yihui yihui > Sys.chmod('testfile', '0755') > file.info('testfile'...
2004 Dec 13
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Henrik, modTime.fromWin32Time(ftLastWriteTime); Note that you'll need write a "fromWin32Time" for the TimeValue class to make the conversion of ftLastWriteTime to TimeValue's notion of normalized time. isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); The mode, user, and group fields aren't applicabe to Win32 so just set them as follows (to avoid Unix issues): user = 9999; group = 9999; mode = 0777; Reid. On Mon, 2004-1...
2004 Dec 14
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...> >Henrik, > > > >modTime.fromWin32Time(ftLastWriteTime); > > Note that you'll need write a "fromWin32Time" for the TimeValue > > class to make the conversion of ftLastWriteTime to TimeValue's > > notion of normalized time. > > > >isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; > > > >fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); > > > >The mode, user, and group fields aren't applicabe to Win32 so just set > >them as follows (to avoid Unix issues): > > > &gt...
2010 Nov 29
1
tar R command
...the command can't be found in the OS. However, it doesn't seem to be the case, as I get an empty .tar file generated on a small example I made : > dir(pattern = "jpg") [1] "MA56237502_635.jpg" > file.info("MA56237502_635.jpg") size isdir mode mtime ctime atime exe MA56237502_635.jpg 229831 FALSE 666 2010-11-29 13:05:49 2010-11-29 13:00:36 2010-11-29 13:00:36 no > tar("example.tar", files = dir(pattern = "jpg")) > file.info("example.tar") siz...
2011 Sep 19
0
file.info(path) "inconsistent" with file.exists(path) when path == "C:/"
...o file.info("C:/."). 2. Any number of dots will do, e.g. identical(file.info("C:/........."), file.info("C:/.")) == TRUE DETAILS: # C:/ => DISCREPANCY file.exists() and file.info() > file.exists("C:/") [1] TRUE > file.info("C:/") size isdir mode mtime ctime atime exe C:/ NA NA <NA> <NA> <NA> <NA> <NA> > x <- list.files("C:/") > str(x) chr [1:62] "$Recycle.Bin" "Boot" "bootmgr" "BOOTSECT.BAK" ... > x <- shell('dir "C:/&quot...
2007 Feb 28
1
Removing directory?
Hi, I'm trying to remove/delete a directory usingR. I've tried the following with no success: % Rterm --vanilla > getwd() [1] "C:/Documents and Settings/hb/braju.com.R/aroma.affymetrix/test" > dir.create("foo") > file.info("foo") size isdir mode mtime ctime atime foo 0 TRUE 777 2007-02-28 14:52:10 2007-02-28 14:52:10 2007-02-28 14:52:10 # Using file.remove() > res <- sapply(c("foo", "foo/", "foo\\", "./foo", "./foo/"), file.remove)...
2010 Oct 07
2
file.info returning NA
Windows 7, R-2.11.1 and R-2.12.0beta When I do file.info(list.files(getwd())) I get what I expect, a dataframe with a lot of variables, especially isdir, which tells me if the named object is a file or a directory. In the result of file.info(list.files(paste(R.home(),"library",sep="/"))) all variables have only NA values, even when I start R in elevated mode.
2010 Sep 29
0
temp Rscript file collision on Windows
...g thing if 2 Rterm processes are started at the same time (or less than 1 second apart, the resolution of time() being 1 second): /* tmpfile() seems not to work on Vista: it tries to write in c:/ ifp = tmpfile(); */ { char *tm; tm = getenv("TMPDIR"); if (!isDir(tm)) { tm = getenv("TMP"); if (!isDir(tm)) { tm = getenv("TEMP"); if (!isDir(tm)) tm = getenv("R_USER"); /* this one will succeed */ } } srand( (unsigned) time(NULL) );...
2009 Jul 09
4
Issues with file.info?
Are there any tricks associated with file.info? I just tried it on a directory folder and it returned NA for all fields for all files. I tried it on a different folder with different files and it still returned NA. I tried it on a specific file and it returned all the proper info correctly. Just wondering if there are any tricks I've overlooked.
2009 Jun 23
3
list.files(getwd()) and list.files(getwd(), full.names=TRUE) appear to return directory names
Is there any way to make list.files(getwd()) or list.files(getwd(),full.names=TRUE) stop returning directories? Right now both appear to return both file names and folders within the location. I would like for it only to return file names and not folders. I am using this on Windows with R version 2.9.0 (2009-04-17). Thank you again for all your help and any feedback. Jason
2019 Apr 28
2
Inno Setup 6.0.2 fails before creating exe file on Windows (R-3.6.0)
...nstalled the most recent update of Inno setup, which is now 6.0.2.With that version, `make risntaller` fails at the call to ""C:/R/Inno/iscc" R.iss > R-3.6.0.log 2>&1" and just exits, pointing to line 175 of the makefile which is: $(RPREFIX)-win.exe: R.iss "$(ISDIR)/iscc" R.iss > $(RPREFIX).log 2>&1 Reinstalling Inno Setup 5.6.1 does allow the exe file to be created. Thank you, Avi