Re: [R-pkg-devel] Help with a note

2020-09-03 Thread Anirban
Thank you for the helpful replies! I got it now, I overlooked the return on the ifelse() before. Thanks a lot again! - Anirban On Thu, Sep 3, 2020, 11:18 AM Anirban wrote: > Hi, I've one note in my package which I can't seem to resolve while > submitting to CRAN: > > New submission > > Flavo

Re: [R-pkg-devel] Help with a note

2020-09-03 Thread Max Turgeon
behalf of Anirban Sent: Thursday, September 3, 2020 12:48 AM To: r-package-devel@r-project.org Subject: [R-pkg-devel] Help with a note Caution: This message was sent from outside the University of Manitoba. *

Re: [R-pkg-devel] Help with a note

2020-09-03 Thread Gábor Csárdi
`return()` is a function in R, so `return` does nothing. You probably want `return()`. Here: https://github.com/Anirban166/testComplexity/blob/c991c31e5250bcaf804c3ad781fbc126c6a17e57/R/asymptoticMemoryUsage.R#L22 https://github.com/Anirban166/testComplexity/blob/master/R/asymptoticTimings.R#L22

[R-pkg-devel] Help with a note

2020-09-03 Thread Anirban
Hi, I've one note in my package which I can't seem to resolve while submitting to CRAN: New submission Flavor: r-devel-linux-x86_64-debian-gcc, r-devel-windows-ix86+x86_64 Check: R code for possible problems, Result: NOTE Possibly missing '()' after 'return' in the following functions: 'a