[R-SIG-Mac] dir only shows some of what's there

Spencer Graves @pencer@gr@ve@ @end|ng |rom prod@y@e@com
Thu Mar 12 07:42:17 CET 2020


Hello, All:


       What can cause "dir" to list only 3 of 18 files in a certain 
directory?


       I'm working with Jim Ramsay trying to migrate the fda package to 
GitHub.  The current status is at 
"https://github.com/JamesRamsay5/fda-revision".  The "data" subdirectory 
there contains only 3 files;  there should be 18.  I have all 18 in a 
local directory on my MacBook Pro running 10.15.3. I can see them in 
Finder, but I'm unable to get R to see more than those three.


        I do "(wd0 <- getwd())" and get:


[1] "/Users/sbgraves/Documents/current/R/fda"


       Finder shows that this has subdirectories "data" and 
"fda2020-03-11/fda/data" both with 18 files and "fda-revision/fda/data" 
with only 3.  The latter is a current clone of 
"https://github.com/JamesRamsay5/fda-revision".  I copied files 
yesterday into "fda-revision/fda/R" and "fda-revision/fda/demo" without 
problems.  However, over the past few hours, I've been unable to copy a 
file one of the remaining 15 files from "fda2020-03-11/fda/data" into 
"fda-revision/fda/data".


        In R I tried the following:


 > (fda511old.data <- file.path(wd0, 'fda2020-03-11',
+       'fda', 'data'))
[1] "/Users/sbgraves/Documents/current/R/fda/fda2020-03-11/fda/data"
 > dir(fda511old.data)
[1] "gait.rda"        "melanoma.rda"    "nondurables.rda"
 >
 > (fdaRev.data <- file.path(wd0, 'fda-revision',
+                        'data'))
[1] "/Users/sbgraves/Documents/current/R/fda/fda-revision/data"
 > dir(fdaRev.data)
[1] "gait.rda"        "melanoma.rda"    "nondurables.rda"


       I checked "data info" on all 3 "data" directories.  The two with 
18 files show 18 items while the one with 3 shows only 3. "data info" 
for all three say "You can read and write".


       Suggestions?
       Thanks,
       Spencer Graves


 > sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.3

Matrix products: default
BLAS: 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: 
/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets
[6] methods   base

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3



More information about the R-SIG-Mac mailing list