Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Eric Berger
In your R session do library(magrittr) 1:10 %>% sum() This should output 55. If that does not work send the results, include the output of sessionInfo() showing that you have loaded magrittr. On Wed, Jun 19, 2024 at 9:43 AM Ogbos Okike wrote: > Dear Eric, > Good morning from Nigeria. > > Ple

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Eric Berger
Please show the output of > sessionInfo() On Tue, Jun 18, 2024 at 7:49 PM Ogbos Okike wrote: > Thanks, Duncan for contributing. I quickly tried entering the command on a > new line. But the error pointed specifically to the point. It didn't run. > Best regards > Ogbos > > On Tue, Jun 18, 2024 a

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Ogbos Okike
Thanks, Duncan for contributing. I quickly tried entering the command on a new line. But the error pointed specifically to the point. It didn't run. Best regards Ogbos On Tue, Jun 18, 2024 at 5:38 PM Duncan Murdoch wrote: > On 2024-06-18 12:17 p.m., Ben Bolker wrote: > > You probably have to

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Ogbos Okike
Yes, Ben and others. Many thanks for your swift response. I have quickly installed the 'magrittr' package. It was installed successfully. But I tried to edit it using EDIT(magrittr). But it didn't work. Please, guide me further on how to edit it. Thank you very much. Ogbos On Tue, Jun 18, 2024

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Duncan Murdoch
On 2024-06-18 12:17 p.m., Ben Bolker wrote: You probably have to update your R version. The native pipe |> wasn't introduced until R version 4.4. R.version.string (among others) will tell you what version you have. Typo: it was introduced in R 4.1.0. Another possible problem is with line

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Iris Simmons
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 wrote: > Greetings to everyone and

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Ben Bolker
You probably have to update your R version. The native pipe |> wasn't introduced until R version 4.4. R.version.string (among others) will tell you what version you have. If you don't want to do that, install and load the 'magrittr' package and change |> to %>% everywhere. On 2024-06-18

[R] I have Problem using the Pipe Command

2024-06-18 Thread Ogbos Okike
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. lib