Re: [R-pkg-devel] Two errors

2025-07-05 Thread Jiří Moravec
ce Sharon *From: *Iris Simmons *Date: *Thursday, July 3, 2025 at 5:11 PM *To: *Sharon Bewick *Cc: *Michael Chirico , R Package Development < r-package-devel@r-project.org> *Subject: *Re: [R-pkg-devel] Two errors This Message Is From An External Sender: Use caution when opening lin

Re: [R-pkg-devel] Two errors

2025-07-04 Thread Michael Chirico
July 3, 2025 at 5:11 PM > *To: *Sharon Bewick > *Cc: *Michael Chirico , R Package Development < > r-package-devel@r-project.org> > *Subject: *Re: [R-pkg-devel] Two errors > > This Message Is From An External Sender: Use caution when opening links or > attachments if you

Re: [R-pkg-devel] Two errors

2025-07-04 Thread Sharon Bewick
: Sharon Bewick Cc: Michael Chirico , R Package Development Subject: Re: [R-pkg-devel] Two errors This Message Is From An External Sender: Use caution when opening links or attachments if you do not recognize the sender. I believe the suggestion was that you should alternatively write: .Call

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Iris Simmons
Description file? Somewhere in the code? > > So sorry for not understanding! > > Thanks! > Sharon > > From: Michael Chirico > Date: Thursday, July 3, 2025 at 4:13 PM > To: Sharon Bewick > Cc: R Package Development > Subject: Re: [R-pkg-devel] Two errors > > Th

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Josiah Parry
here should > the "seq_root2tip" with PACKAGE="ape" go? In the NAMESPACE file? In the > Description file? Somewhere in the code? > > So sorry for not understanding! > > Thanks! > Sharon > > From: Michael Chirico > Date: Thursday, July 3, 2025 at

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Duncan Murdoch
. Most package maintainers are happy to accept suggested improvements. Duncan Murdoch *From: *Duncan Murdoch *Date: *Thursday, July 3, 2025 at 4:13 PM *To: *Sharon Bewick , r-package-devel@r-project.org *Subject: *Re: [R-pkg-devel] Two errors This Message Is From An External Sender: Use

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Sharon Bewick
obal variable ‘seq_root2tip’ Undefined global functions or variables: seq_root2tip Any thoughts? Sharon From: Josiah Parry Date: Thursday, July 3, 2025 at 4:46 PM To: Sharon Bewick Cc: Michael Chirico , R Package Development Subject: Re: [R-pkg-devel] Two errors This Message Is From An Externa

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Josiah Parry
ron Bewick > Cc: R Package Development > Subject: Re: [R-pkg-devel] Two errors > > This Message Is From An External Sender: Use caution when opening links or > attachments if you do not recognize the sender. > 1. all functions in R are variables. You can "trick" c

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Sharon Bewick
ichael Chirico Date: Thursday, July 3, 2025 at 4:13 PM To: Sharon Bewick Cc: R Package Development Subject: Re: [R-pkg-devel] Two errors This Message Is From An External Sender: Use caution when opening links or attachments if you do not recognize the sender. 1. all functions in R are variables.

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Sharon Bewick
The problem is that the function that ape exports is way too slow. Using C directly really sped up my program, which is a bit slow even at that… From: Duncan Murdoch Date: Thursday, July 3, 2025 at 4:13 PM To: Sharon Bewick , r-package-devel@r-project.org Subject: Re: [R-pkg-devel] Two

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Michael Chirico
1. all functions in R are variables. You can "trick" code tools by writing seq_root2tip=NULL in the same scope but consider (a) C routines are typically part of a package's private interface (b) it might be preferable to use the string "seq_root2tip" with PACKAGE="ape" 2. phytree is not the same a

Re: [R-pkg-devel] Two errors

2025-07-03 Thread Duncan Murdoch
On 2025-07-03 5:57 p.m., Sharon Bewick wrote: 1. I�m trying to upload my R package. However, I use the ape function seq_root2tip but for the sake of speed am calling it using .Call: toroot<-.Call(seq_root2tip, nt$edge, length(nt$tip.label), nt$Nnode) How do I get R to recognize the seq_root2ti

[R-pkg-devel] Two errors

2025-07-03 Thread Sharon Bewick
1. I�m trying to upload my R package. However, I use the ape function seq_root2tip but for the sake of speed am calling it using .Call: toroot<-.Call(seq_root2tip, nt$edge, length(nt$tip.label), nt$Nnode) How do I get R to recognize the seq_root2tip function from ape in this C call? It is throw