quickcheck icon indicating copy to clipboard operation
quickcheck copied to clipboard

Note: wrong number of arguments to 'sqrt'

Open barracuda156 opened this issue 2 years ago • 1 comments

Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-quickcheck/R-quickcheck/work/quickcheck" && /opt/local/bin/R CMD INSTALL . --library=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-quickcheck/R-quickcheck/work/destroot/opt/local/Library/Frameworks/R.framework/Versions/4.3/Resources/library 
* installing *source* package ‘quickcheck’ ...
** package ‘quickcheck’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Note: wrong number of arguments to 'sqrt' 
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (quickcheck)
--->  Installing R-quickcheck @0.1.3_0
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-quickcheck/R-quickcheck/work/destroot" && /usr/bin/tar -cvf - . | /opt/local/bin/lbzip2 -c9 > /opt/local/var/macports/software/R-quickcheck/R-quickcheck-0.1.3_0.darwin_10.noarch.tbz2

barracuda156 avatar Oct 12 '23 00:10 barracuda156

I am receiving the same note message in my personal R package. The problem is because of using the pipe operator %>%

You need to replace, e.g.

1:10 %>% sqrt()

with

1:10 %>% sqrt(x = .)

Cheers

elgabbas avatar Jul 26 '24 13:07 elgabbas