

It was suggested by Prof. Ripley at the first place to check the tar ball.
But I missed the hint. (never checked the tar ball previously)
Thank you Prof. Ripley! 
Apologise for not spotting it in the beginning. :)

Many thanks for all your help.
It's much appreciated.

With kind regards,
Ema



________________________________
 From: peter dalgaard <pdalgd@gmail.com>

Cc: Prof Brian Ripley <ripley@stats.ox.ac.uk>; David Winsemius <dwinsemius@comcast.net>; "r-sig-mac@r-project.org" <r-sig-mac@r-project.org>; "kasperdanielhansen@gmail.com" <kasperdanielhansen@gmail.com> 
Sent: Tuesday, August 6, 2013 6:17 PM
Subject: Re: [R-SIG-Mac] hidden files and directories



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.
> See
>   ‘/Users/rfajriyah/Desktop/pkgName.Rcheck/00check.log’
> for details.
> 
> It because of this :
> * checking for hidden files and directories ... NOTE
> Found the following hidden files and directories:
>   .DS_Store
>   man/.DS_Store
> 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,
> Ema
> 
> From: peter dalgaard <pdalgd@gmail.com>
> To: Prof Brian Ripley <ripley@stats.ox.ac.uk> 
> Cc: David Winsemius <dwinsemius@comcast.net>; "r-sig-mac@r-project.org" <
> 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@cbs.dk  Priv: PDalgd@gmail.com
> 
> 
> 

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes@cbs.dk  Priv: PDalgd@gmail.com
	[[alternative HTML version deleted]]

