Discussion:
[Roxygen-devel] [roxygen2] roxygenise parses R files that are not in Collate
Renaud Gaujoux
2011-09-21 12:16:52 UTC
Permalink
Hi,

Suppose a package directory that contains R files that are not in the
Collate field in the DESCRIPTION.
Running:
roxygenise('.', roclets='rd')

will parse all the R files, even those that are not in Collate.
I explicitly used the argument roclets='rd', since the default would be
to update the Collate field with new R scripts (right?).

Is this normal?
Attached a dummy package to reproduce the issue.

Thank you
--
Renaud Gaujoux
Computational Biology - University of Cape Town
South Africa




###

UNIVERSITY OF CAPE TOWN

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

###


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_1.0.tar.gz
Type: application/x-gzip
Size: 479 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/roxygen-devel/attachments/20110921/a911ca4f/attachment.bin>
Hadley Wickham
2011-09-21 19:36:49 UTC
Permalink
On Wed, Sep 21, 2011 at 7:16 AM, Renaud Gaujoux
Post by Renaud Gaujoux
Hi,
Suppose a package directory that contains R files that are not in the
Collate field in the DESCRIPTION.
roxygenise('.', roclets='rd')
will parse all the R files, even those that are not in Collate.
I explicitly used the argument roclets='rd', since the default would be to
update the Collate field with new R scripts (right?).
Yes, correct. Roxygen2 updates collate for you, so it must parse all
files. What behaviour are you looking for?

Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
Loading...