An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130805/5109f6f7/attachment.pl>
hidden files and directories
14 messages · Rohmatul Fajriyah, David Winsemius, Brian Ripley +3 more
On Aug 5, 2013, at 5:00 PM, Rohmatul Fajriyah wrote:
Dear All, I tried to build an R package (from the terminal) and everything was ok until R CMD check PackageName and I got this message: ...... * checking for hidden files and directories ... NOTE Found the following hidden files and directories: .DS_Store man/.Rapp.history
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
These were most likely included in error. See section ?Package structure? in the ?Writing R Extensions? manual. ...... I, then: a. went through the archives of this mailing list (until January 2011) and I could not find a similar problem. (apologise, if I missed it)
In 2008 it was reported in the NEWS for R 2.7.1 that: http://markmail.org/search/?q=list%3Aorg.r-project.r-help+DS_Store#query:list%3Aorg.r-project.r-help%20DS_Store+page:1+mid:cx3hryqssis2slx7+state:results o R CMD build tries harder to clean up the inst/doc directory from the remnants of earlier builds. It also removes any directories with extension .Rcheck, and files .DS_Store and ._* (created by tar on Mac OS X under some circumstances: it now sets environment variables to ask for such files not to be created by that tar.) So we need to ask if this was just a warning message. It appears that there are mechanisms in place to remove those files. (It's arguably an R-devel topic.)
David. > b. followed the advice at here http://thecoatlessprofessor.com/blog/2013/07/updating-the-visualize-rpackage and http://guides.macrumors.com/Viewing_hidden_files_on_a_Mac > c. read this http://cran.r-project.org/doc/manuals/R-exts.html > > But still, I can't solve the problem. I am new in using Mac terminal. > > I have built a trial package previously and not encountered with this problem when it came in to this step (check package). > > Any help, is really appreciated. > > Thank you very much in advance. > > With kind regards, > Ema > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac at r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac David Winsemius Alameda, CA, USA
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130805/68faad3f/attachment.pl>
On 06/08/2013 01:16, David Winsemius wrote:
On Aug 5, 2013, at 5:00 PM, Rohmatul Fajriyah wrote:
Dear All, I tried to build an R package (from the terminal) and everything was ok until R CMD check PackageName and I got this message: ...... * checking for hidden files and directories ... NOTE Found the following hidden files and directories: .DS_Store man/.Rapp.history
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.
These were most likely included in error. See section ?Package structure? in the ?Writing R Extensions? manual. ...... I, then: a. went through the archives of this mailing list (until January 2011) and I could not find a similar problem. (apologise, if I missed it)
In 2008 it was reported in the NEWS for R 2.7.1 that: http://markmail.org/search/?q=list%3Aorg.r-project.r-help+DS_Store#query:list%3Aorg.r-project.r-help%20DS_Store+page:1+mid:cx3hryqssis2slx7+state:results o R CMD build tries harder to clean up the inst/doc directory from the remnants of earlier builds. It also removes any directories with extension .Rcheck, and files .DS_Store and ._* (created by tar on Mac OS X under some circumstances: it now sets environment variables to ask for such files not to be created by that tar.) So we need to ask if this was just a warning message. It appears that there are mechanisms in place to remove those files. (It's arguably an R-devel topic.)
It seems the OP did not use R CMD build, rather R CMD check. But files like man/.Rapp.history will need to be removed manually.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130806/2e580d03/attachment.pl>
On 06/08/2013 08:41, Rohmatul Fajriyah wrote:
Dear Prof. Ripley and Prof. Winsemius, I have deleted the .Rapp.history (hope, it was all of them), but still got the same message when run the R CMD check PkgName. I'll shutdown the laptop, start a fresh session and will rename the R functions for the package and the package itself differently. Then I will see what happened and report it here.
You are supposed to check the tarball produced by R CMD build ....
Many thanks for the respond and thoughts. With kind regards, Ema ------------------------------------------------------------------------ *From:* Prof Brian Ripley <ripley at stats.ox.ac.uk> *To:* David Winsemius <dwinsemius at comcast.net> *Cc:* Rohmatul Fajriyah <rfajriyah at yahoo.com>; "r-sig-mac at r-project.org" <r-sig-mac at r-project.org> *Sent:* Tuesday, August 6, 2013 8:06 AM *Subject:* Re: [R-SIG-Mac] hidden files and directories On 06/08/2013 01:16, David Winsemius wrote:
> > On Aug 5, 2013, at 5:00 PM, Rohmatul Fajriyah wrote: >
>> Dear All, >> >> I tried to build an R package (from the terminal) and everything was
ok until R CMD check PackageName and I got this message:
>> ...... >> * checking for hidden files and directories ... NOTE >> Found the following hidden files and directories: >> .DS_Store >> man/.Rapp.history
> > 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.
>
>> These were most likely included in error. See section ?Package >> structure? in the ?Writing R Extensions? manual. >> ...... >> >> I, then: >> a. went through the archives of this mailing list (until January
2011) and I could not find a similar problem.
>> (apologise, if I missed it)
> > In 2008 it was reported in the NEWS for R 2.7.1 that: > >
> > o R CMD build tries harder to clean up the inst/doc directory from
the remnants of earlier builds.
> > It also removes any directories with extension .Rcheck, and files
.DS_Store and ._* (created by tar on Mac OS X under some circumstances: it now sets environment variables to ask for such files not to be created by that tar.)
> > So we need to ask if this was just a warning message. It appears that
there are mechanisms in place to remove those files.
> > (It's arguably an R-devel topic.)
It seems the OP did not use R CMD build, rather R CMD check. But files like man/.Rapp.history will need to be removed manually. -- Brian D. Ripley, ripley at stats.ox.ac.uk <mailto:ripley at stats.ox.ac.uk> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130806/f61a07c9/attachment.pl>
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
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130806/1c80fabf/attachment.pl>
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 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 Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130806/0a0e7fac/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130806/51f9a79b/attachment.pl>
You should be running R CMD check on the package *tarball*, not on the source folder tree. So: R CMD check pkgName_X.1.tar.gz or perhaps: R CMD check --as-cran pkgName_X.1.tar.gz after running: R CMD build pkgName to create the source tarball. The output regarding the .DS_Store files is a NOTE regarding the package folder tree, not on the tarball contents and is not a warning or an error. Don't worry about .DS_Store or other version control system files (eg. for SVN or Git) as they will be ignored when building the package tarball, as R excludes them by default. Other hidden files however, may be problematic, so you should avoid explicitly creating them, just as you should remove other non-essential files that may have been created by editors, GUIs, etc. that should not be part of the source package content. More generally, don't worry about the .DS_Store files on OSX. They contain metadata that is useful for Finder and are arguably an annoyance, but that's about it. There are parallel files on other OS's as well. Regards, Marc Schwartz
On Aug 6, 2013, at 9:59 AM, Rohmatul Fajriyah <rfajriyah at yahoo.com> 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 untarbut 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. Many thanks for all your respond and suggestion. With kind regards, Ema
________________________________ 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- 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 [[alternative HTML version deleted]] _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20130807/b2141d0d/attachment.pl>