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
Hi Anirban,
I don't think the issue is coming from the return statement at the end of your
function. I think it's triggered by your "ifelse" statement, where you have
"return" as the expression to be run if the condition isn't met.
A more idiomatic way of achieving what you're trying to do woul
`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