Skip to content
Back to formatted view

Raw Message

Message-ID: <deb4fb55-90bb-d0b1-454d-746b4b48f305@statistik.tu-dortmund.de>
Date: 2019-07-26T07:13:17Z
From: Uwe Ligges
Subject: [R-pkg-devel] Example fails in check
In-Reply-To: <dc1771de-945d-456f-a487-1c03cc3b004e@wiwi.hu-berlin.de>

I'd suggest not to use pipes in package code, as the parser does not 
know about them and hence debugging, error messages .... are more 
obfuscated.

Why not use he functional way of R?


For the question: I guess you do not have a corresponding entry in the 
NAMESPACE file?

Best,
Uwe



On 26.07.2019 08:37, Sigbert Klinke wrote:
> Hi,
> 
> im my package development I get the following error when checking an 
> example:
> 
>  > m <- findMatch('test', x[[1]], FUN='leven(code)') %>% addWave(x[[2]])
> 
>  ? Error in findMatch("test", x[[1]], FUN = "leven(code)") %>% 
> addWave(x[[2]]) :
>  ??? could not find function "%>%"
>  ? Execution halted
> 
> In my DESCRIPTION file I wrote
> 
> Imports:
>  ? rio,
>  ? stringi,
>  ? magrittr
> 
> So, I expected that magrittr is loaded when the example is executed.
> 
> If I add an "library(magrittr)" at the beginning of the example then the 
> example is okay.
> 
> Any ideas what goes wrong?
> 
> Sigbert
>