[R-SIG-Mac] hidden files and directories
pdalgd at gmail.com
Tue Aug 6 18:17:42 CEST 2013
On Aug 6, 2013, at 16:59 , Rohmatul Fajriyah wrote:
> Dear All,
> Apologise for late reply. I tried to clean some files from my laptop and it took time.
> Prof. Ripley: I already checked it and untar but it still produces the .DS_Store
> Dr. Hansen: I did it as follows: R CMD build pkgName, then R CMD install pkgName_X.1.tar.gz and R CMD check pkgName.
> After the last step, the results was
> NOTE: There was 1 note.
> for details.
> It because of this :
> * checking for hidden files and directories ... NOTE
> Found the following hidden files and directories:
> These were most likely included in error. See section ‘Package
> structure’ in the ‘Writing R Extensions’ manual.
> The man/Rapp.history is gone now, after I deleted it manually.
> I suppose, I need to know how to clean the .DS_Store from my laptop.
> Prof. Dalgaard Prof. Winsemius: if I type defaults write com.apple.Finder AppleShowAllFiles TRUE in terminal session, yes, I can see the .DS_Store by using ls or Finder.app.
> But still don't know how to clear/remove it.
You can do it with rm in a terminal, but as I understand it, .DS_store files are created _by_ Finder, so it is a bit of a fight against windmills. It'll be there again next time you view the directory.
The key is to do what Kasper said. Exactly what he said, not what you think he meant to say! I.e.,
R CMD build pkgName
R CMD check pkgName_X_Y_Z.tar.gz
I.e., do not install, build and run check on the .tar.gz file. R CMD build should take care of skipping the .DS_store files.
> Many thanks for all your respond and suggestion.
> With kind regards,
> From: peter dalgaard <pdalgd at gmail.com>
> To: Prof Brian Ripley <ripley at stats.ox.ac.uk>
> Cc: David Winsemius <dwinsemius at comcast.net>; "r-sig-mac at r-project.org" <r-sig-mac at r-project.org>; Rohmatul Fajriyah <rfajriyah at yahoo.com>
> Sent: Tuesday, August 6, 2013 2:55 PM
> Subject: Re: [R-SIG-Mac] hidden files and directories
> On Aug 6, 2013, at 08:06 , Prof Brian Ripley wrote:
> >> Those files would both be invisible when using the Finder.app unless you used ls in a terminal session, but I guess you figured that out
> > invisible *by default*: it is a Finder setting.
> They're trying their damndest to hide it, though. It's only settable by "defaults write ..." in a Terminal. (And if you know how to do that, you might as well be using "ls".)
> Peter Dalgaard, Professor
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-SIG-Mac