[R-pkg-devel] Help with a note
Gábor Csárdi
c@@rd|@g@bor @end|ng |rom gm@||@com
Thu Sep 3 20:02:57 CEST 2020
`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
Gabor
On Thu, Sep 3, 2020 at 6:42 PM Anirban <bloodraven166 using gmail.com> wrote:
>
> 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:
> 'asymptoticMemoryUsage' 'asymptoticTimings'
>
>
> There are opening and closing brackets with the return statement to the
> functions already. The source code can be found here:
> asymptoticTimings:
> https://github.com/Anirban166/testComplexity/blob/master/R/asymptoticTimings.R
> asymptoticMemoryUsage:
> https://github.com/Anirban166/testComplexity/blob/master/R/asymptoticMemoryUsage.R
>
>
> The note seems trivial but I can't seem to get rid of it. Any help would be
> appreciated.
>
> Thanks,
> Anirban
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list