Re: [R] [FORGED] Re: paste workable code to R 4.0.0 cause error

2020-04-28 Thread Jinsong Zhao
On 2020/4/29 11:55, Richard M. Heiberger wrote: I pasted it into Emacs ESS on Macintosh, Emacs ESS on Windows, and Rgui on Windows. All 4.0.0 .  It runs fine. I test the code using ESS on Windows. It also give error, but with different position: > gz <- within(gz, + { +

Re: [R] [FORGED] Re: pair correlation function of 3D points

2020-04-28 Thread Abby Spurdle
I should have noted that my comments weren't directed towards the main authors, but to all people listed in the description file, which is many, including some R core members. Also, overall, I'm impressed by the effort here. It's just I strongly feel that good documentation is crucial (especially

Re: [R] [FORGED] Re: paste workable code to R 4.0.0 cause error

2020-04-28 Thread Richard M. Heiberger
I pasted it into Emacs ESS on Macintosh, Emacs ESS on Windows, and Rgui on Windows. All 4.0.0 . It runs fine. On Tue, Apr 28, 2020 at 11:36 PM Rolf Turner wrote: > > The (excellent) MWE that you provided runs just fine for me (in R 4.0.0 > under Ubuntu 18.04) either by sourcing "aaa.R" or by us

Re: [R] Package 'coin' - How to extract rho

2020-04-28 Thread Jim Lemon
Hi Christine, I noticed that your question did not receive a reply. As I don't know exactly what you have tried, it is a bit difficult to suggest a solution. If you are still unable to get this to work, could you provide an example of your present code and data if necessary? Jim On Mon, Apr 27, 2

Re: [R] [FORGED] Re: pair correlation function of 3D points

2020-04-28 Thread Jeff Newmiller
Hackles down, Rolf... most documentation can benefit from the perspective of a new user. It would be helpful to link the mention of pp3 to the the pp3 function via hyperlink to help clarify what this argument is supposed to be. Abby, FWIW I tend to recommend reading the vignettes before trying t

Re: [R] [FORGED] Re: paste workable code to R 4.0.0 cause error

2020-04-28 Thread Rolf Turner
The (excellent) MWE that you provided runs just fine for me (in R 4.0.0 under Ubuntu 18.04) either by sourcing "aaa.R" or by using copy-and-paste. Must be Windoze thing. Switch to Linux! cheers, Rolf Turner n 29/04/20 2:25 pm, Jinsong Zhao wrote: On 2020/4/29 8:05, Jinsong Zhao wrote: H

Re: [R] [FORGED] Re: pair correlation function of 3D points

2020-04-28 Thread Rolf Turner
On 29/04/20 10:07 am, Abby Spurdle wrote: I haven't attempted this. (Mainly because I'm not familiar with the theory surrounding it). However, I looked at the documentation for the spatstat package. There are are several functions prefixed with pcf, including one named pcf3est. According to i

Re: [R] paste workable code to R 4.0.0 cause error

2020-04-28 Thread Jinsong Zhao
On 2020/4/29 8:05, Jinsong Zhao wrote: Hi there, I have a piece of source code with some inline comments in Chinese. It works well when I copy it from a editor (gvim here), and paste it to Rgui console on R 3.6.3, however, when I do the same thing, R 4.0.0 give error message: Error: invalid

[R] paste workable code to R 4.0.0 cause error

2020-04-28 Thread Jinsong Zhao
Hi there, I have a piece of source code with some inline comments in Chinese. It works well when I copy it from a editor (gvim here), and paste it to Rgui console on R 3.6.3, however, when I do the same thing, R 4.0.0 give error message: Error: invalid multibyte character in parser at line 2

Re: [R] pair correlation function of 3D points

2020-04-28 Thread Abby Spurdle
This is probably completely off topic. But I get the impression the spatstat package has turned into a super-package. Which is likely to be difficult to maintain. Wouldn't a better result be achieved by freezing work on the package, and creating some smaller packages with a more specific focus, t

Re: [R] pair correlation function of 3D points

2020-04-28 Thread Jeff Newmiller
Technically, per the Posting Guide, help for contributed packages is supposed to come through different channel(s) than R-help as indicated in their DESCRIPTION file (typically searchable thru the package CRAN page). In practice this rule tends to only get invoked when the OT traffic gets too hi

Re: [R] pair correlation function of 3D points

2020-04-28 Thread Abby Spurdle
I haven't attempted this. (Mainly because I'm not familiar with the theory surrounding it). However, I looked at the documentation for the spatstat package. There are are several functions prefixed with pcf, including one named pcf3est. According to its description field: Estimates the

Re: [R] Rtools required

2020-04-28 Thread Wang Jiefei
I do not exactly know what is going on with your problem but it is better to use the old-school method to install the package so that you can avoid any problems with Rstudio. >From your post, I guess you are using Windows, so please see this link for how to add the Rtools and R to the environment

Re: [R] regular expression, stringr::str_view, grep

2020-04-28 Thread David Winsemius
On 4/28/20 2:29 AM, Sigbert Klinke wrote: Hi, we gave students the task to construct a regular expression selecting some texts. One send us back a program which gives different results on stringr::str_view and grep. The problem is "[^[A-Z]]" / "[^[A-Z]" at the end of the regular expressio

Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch
On 28/04/2020 11:16 a.m., Steven Yen wrote: Thanks. Can you kindly tell me what to read to do it the "standard way"? Start with ?INSTALL, and find more details in the Writing R Extensions manual. I believe RStudio can be configured to use those tools rather than the devtools ones, but I don'

Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch
On 28/04/2020 11:02 a.m., Steven Yen wrote: In RStudio, I enter File -> Open Project -> and browse to open a .Rproj file. Then, I click Build -> Build Binary Package. Thanks. Do it the standard way instead of using devtools. Duncan Murdoch On 2020/4/28 下午 10:55, Duncan Murdoch wrote: On 28

Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch
On 28/04/2020 9:56 a.m., Steven Yen wrote: Thanks. I visited the Rtools web page and learned to run the following lines. I am still getting the same warning message. And you are still not telling us what command you used to trigger that message. Duncan Murdoch > writeLines('PATH="${RTOO

Re: [R] Rtools required

2020-04-28 Thread Fox, John
Dear Steven, > -Original Message- > From: Steven > Sent: Tuesday, April 28, 2020 9:50 AM > To: Fox, John > Cc: R-help Mailing List > Subject: Re: [R] Rtools required > > Hello John, > > Perhaps you can help me. I am an idiot. I visited the Rtools web page and > learn to run the follow

Re: [R] Rtools required

2020-04-28 Thread Richard M. Heiberger
did you change your path to the new location? On Tue, Apr 28, 2020 at 07:25 Steven wrote: > Dear All > > I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now > the new default folder c:\rtools40). While compiling a package (binary) > I received the follow marning message saying

Re: [R] Ubuntu 18.04 R repo bionic-cran35 seems to be broken

2020-04-28 Thread Micha Silver
On 4/28/20 6:59 AM, Yakov Goldberg wrote: I have not mispelled it. That's how repo is added for Ubuntu. The problem is: there is no Release file in that folder. Just today I did a routine upgrade and got some updated packages from cran: micha@RMS ~ $ tail -20 /var/log/apt/history.log .

Re: [R] Ubuntu 18.04 R repo bionic-cran35 seems to be broken

2020-04-28 Thread Stefan Evert
> On 28 Apr 2020, at 05:59, Yakov Goldberg wrote: > > I have not mispelled it. > That's how repo is added for Ubuntu. > The problem is: there is no Release file in that folder. But there is: https://cloud.r-project.org/bin/linux/ubuntu/bionic-cran35/Release So the problem must be so

Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch
On 28/04/2020 5:57 a.m., Steven T. Yen wrote: Dear All I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now the new default folder c:\rtools40). While compiling a package (binary) I received the follow marning message saying Rtools is required. Any clues? Thanks. Presumably y

Re: [R] Rtools required

2020-04-28 Thread Fox, John
Dear Steven, Did you follow the instruction on the Rtools webpage to add PATH="${RTOOLS40_HOME}\usr\bin;${PATH}" to your .Renviron file? I hope this helps, John - John Fox, Professor Emeritus McMaster University Hamilton, Ontario, Canada Web: htt

[R] Rtools required

2020-04-28 Thread Steven
Dear All I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now the new default folder c:\rtools40). While compiling a package (binary) I received the follow marning message saying Rtools is required. Any clues? Thanks. Steven Yen WARNING: Rtools is required to build R package

Re: [R] Ubuntu 18.04 R repo bionic-cran35 seems to be broken

2020-04-28 Thread Yakov Goldberg
I have not mispelled it. That's how repo is added for Ubuntu. The problem is: there is no Release file in that folder. On Mon, Apr 27, 2020, 8:42 PM David Winsemius wrote: > > On 4/27/20 7:41 PM, Yakov Goldberg wrote: > > Hello, > > I'm using Ubuntu 18.04 R repo > > https://cloud.r-project.org/b

[R] Rtools required

2020-04-28 Thread Steven T. Yen
Dear All I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now the new default folder c:\rtools40). While compiling a package (binary) I received the follow marning message saying Rtools is required. Any clues? Thanks. Steven Yen WARNING: Rtools is required to build R package

[R] regular expression, stringr::str_view, grep

2020-04-28 Thread Sigbert Klinke
Hi, we gave students the task to construct a regular expression selecting some texts. One send us back a program which gives different results on stringr::str_view and grep. The problem is "[^[A-Z]]" / "[^[A-Z]" at the end of the regular expression. I would have expected that all four calls

Re: [R] help.start() caused high CPU loading

2020-04-28 Thread Jinsong Zhao
On 2020/4/28 15:44, Abby Spurdle wrote: Again, if R was using 25% while showing the prompt and waiting for user input, that would be a bug in R. 25% CPU is used by R. And R shows the prompt and waits for user input. Here is a report of the CPU usage by Rgui from Windows command line: C:\Users\

Re: [R] help.start() caused high CPU loading

2020-04-28 Thread Abby Spurdle
> > Again, if R was using 25% while showing the prompt and waiting for > > user input, that would be a bug in R. > > 25% CPU is used by R. And R shows the prompt and waits for user input. > > Here is a report of the CPU usage by Rgui from Windows command line: > C:\Users\Jinso>typeperf "\Process(Rg