[R] when .Call can safely modify its arguments

2004-02-28 Thread Vadim Ogranovich
Hi, Writing R Extensions Guide clearly states that a C-function interfaced via .Call() should not modify any of its arguments. However I wonder if there are exceptions to this rule, i.e. when .Call can safely modify the arguments. For example when a function creates a list that is then populated

Re: [R] when .Call can safely modify its arguments

2004-02-28 Thread Prof Brian Ripley
On Sat, 28 Feb 2004, Vadim Ogranovich wrote: Hi, Writing R Extensions Guide clearly states that a C-function interfaced via .Call() should not modify any of its arguments. However I wonder if there are exceptions to this rule, i.e. when .Call can safely modify the arguments. For example