<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,
<br>
<br>
I am using (I would like to use) roxygen2 to document a package from
scratch.
<br>
<br>
- If I run twice in a row roxygenise, I get error(s) about undefined
definition for S4 generic functions.
<br>
I guess it is an issue of where the generic are looked for.
<br>
I always define generic as follows:
<br>
<br>
if ( !isGeneric("myfun") ) setGeneric('myfun', function(x,
annotation, ...) standardGeneric('myfun'))
<br>
<br>
as I thought this was the portable way of defining generics. If I
remove the test for the existence of the generic there are no more
errors. Is this test actually not required or even not recommend?
<br>
<br>
- I get lots of warnings linked to permission issues in the .svn
subdirectories that are copied with the package root directory,
e.g.:
<br>
<br>
In file.create(to[okay]) :
<br>
cannot create file '..<i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>testroxy<span class="moz-txt-tag">/</span></i>.svn/text-base/NAMESPACE.svn-base',
reason 'Permission denied'
<br>
<br>
I like the fact the .svn directory are actually copied, as it allows
me to check for modifications made by roxygenise on the Rd,
NAMESPACE or DESCRIPTION files. Any way to avoid these warnings?
<br>
<br>
Thank you.
<br>
<br>
Renaud
<pre class="moz-signature" cols="72">--
Renaud Gaujoux
Computational Biology - University of Cape Town
South Africa
</pre>
<BR>
<!--StartFragment-->
<p style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 10pt; margin-left: 0cm" class="msonormal">
<font face="Monospaced">###</font>
</p>
<p style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 10pt; margin-left: 0cm" class="msonormal">
<font size="3" face="Monospaced">UNIVERSITY OF CAPE TOWN </font>
</p>
<p style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 10pt; margin-left: 0cm" class="msonormal">
</p>
<p style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 10pt; margin-left: 0cm" class="msonormal">
<font size="3" face="Calibri">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.</font>
</p>
<p style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 10pt; margin-left: 0cm" class="msonormal">
</p>
<p style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 10pt; margin-left: 0cm" class="msonormal">
<font face="Monospaced">### </font><br>
</p>
<!--EndFragment-->
</BODY></HTML>