My guess would be that you're using an older version of R. The pipe was
added in R 4.1. It cannot be used in earlier versions as the syntax is
invalid. You could use the dplyr pipe if you want further back
compatibility.

On Tue, Jun 18, 2024, 12:14 Ogbos Okike <giftedlife2...@gmail.com> wrote:

> Greetings to everyone and thank you for your readiness to help.
>
> I have problems using the pipe command (|>).
>
> Once I have it in any script on my system, it won't.
>
> The error message will say:
>
> unexpected '>'
> I loaded the two packages below to see if it would handle it. But the
> problem remains.
> library(magrittr)
> library(dplyr)
>
> I searched to see if there was a way to install the command. But I was not
> successful.
>
> Please tell me what to do to be able to use the pipe command on my system.
> I would be grateful for any help.
> Thank you.
>
> Sincerely yours
> Ogbos
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to