Re: [ESS] Trailing slash deleted from find-file prompt

2021-03-05 Thread Brendan.Halpin via ESS-help
Thanks for the hint.

They have the values nil (use current) and t (ask) respectively, for the moment.

Brendan
-- 
Brendan Halpin, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147
Room F1-007 x 3147
http://teaching.sociology.ul.ie/bhalpin/wordpress
twitter:@BrendanTHalpin
Papers online at: http://teaching.sociology.ul.ie/bhalpin/publications.html
ULSociology on Facebook: Sociology@Limerick twitter:@ULSociology

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Trailing slash deleted from find-file prompt

2021-03-05 Thread Brendan.Halpin via ESS-help
To demonstrate:

Starting an R session with M-x R. The comments "# default-directory" are 
evaluated with C-u C-x C-e. Sourcing a small file doesn't change 
default-directory, but running it from the buffer with C-c C-r strips the final 
slash. 

ess-version: 18.10.3snapshot [elpa: 20210227.2101] (loaded from 
/home/brendan/.emacs.d/elpa/ess-20210227.2101/)

> setwd('/tmp/test/')
> # default-directory "/tmp/test/"
> ls()
character(0)
> # default-directory "/tmp/test/"
> source("mwe.R")
[1] "Start 2021-03-05 10:44:32"
[1] "End   2021-03-05 10:44:32"
> # default-directory "/tmp/test/"
> start <- Sys.time()
+ print(sprintf("Start %s", start))
+ print(sprintf("End   %s", Sys.time()))
> [1] "Start 2021-03-05 10:44:49"
> [1] "End   2021-03-05 10:44:49"
> # default-directory "/tmp/test"

However, I can't reproduce this all the time: in a fresh emacs session it might 
not happen to begin with.

I have reproduced this in emacs -q, with just:
(package-initialize)
(require 'ess)
as setup, so it's not down to my (extensive) cruft.

It may be worth noting that this happens in the *R* buffer, but not the mwe.R 
buffer (which retains the correct value). 

Regards,

Brendan
-- 
Brendan Halpin, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147
Room F1-007 x 3147
http://teaching.sociology.ul.ie/bhalpin/wordpress
twitter:@BrendanTHalpin
Papers online at: http://teaching.sociology.ul.ie/bhalpin/publications.html
ULSociology on Facebook: Sociology@Limerick twitter:@ULSociology

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[ESS] readline with trailing space

2021-03-05 Thread Jeremie Juste via ESS-help
Hello,

I have noticed a behavior that I don't understand. When I call the
following function from the prompt.
test <- function(){
a <- readline("selection: ")
a
}

> test()
> selection: |
I can only type one character and the readline function exits before I can
press enter.

however

test1 <- function(){
a <- readline("selection:")
a
}
> test1()
> selection:|
works as expected.
> selection: abc[Ret]

However calling directly readline with a space in the prompt does what I
would expect.

> a <- readline("selection: ")
> selection: abc[Ret]
> a
> "abc"

It is the expected behavior or am I missing something?


I can reproduce this behavior on Windows and Linux.
I cannot reproduce this behavior in a bash terminal, or on RStudio.
I'm using ess-version: 18.10.3snapshot [elpa: 20200825.829] (loaded from
/home/djj/.emacs.d/elpa/ess-20200825.829/) but the problem still persist
in the latest version. 

Best regards.
-- 
Jeremie Juste

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] [External] Re: [External] Re: emacs 27.1 crashes regularly on Mac M1

2021-03-05 Thread Sparapani, Rodney via ESS-help
Hi Rich:

To me, it seems unlikely that this is an emacs issue.
I think you should be sending your crash reports to
Apple.  Especially if this is a Rosetta issue as you 
suspect.  My 2 cents ;o)

-- 

Rodney Sparapani, Associate Professor of Biostatistics
Chair ISBA Section on Biostatistics and Pharmaceutical Statistics 
Institute for Health and Equity, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus
 

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] readline with trailing space

2021-03-05 Thread Greg Minshall via ESS-help
Jeremie,

i am runnnig

ess-version: 18.10.3snapshot [elpa: 20210109.1455] (loaded from
/home/minshall/.emacs.d/elpa/ess-20210109.1455/)

under arch linux.  i don't see the behavior you see.  in my
configuration, both test() and test1() seem to accept a line of
characters.

have you tried starting emacs -whatever (like, -q or -Q or ...)?

cheers, Greg

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] [External] Re: [External] Re: [External] Re: emacs 27.1 crashes regularly on Mac M1

2021-03-05 Thread Richard M. Heiberger via ESS-help
good idea. i am now downloading a universal build instead of the x86-64 that 
Vincent Goulet distributed.
I will report back in a few days.


From: ESS-help  on behalf of Sparapani, Rodney 
via ESS-help 
Sent: Friday, March 5, 2021 09:17
To: ess-help@r-project.org
Subject: [External] Re: [ESS]  [External] Re: [External] Re: emacs 27.1 crashes 
regularly on Mac M1

Hi Rich:

To me, it seems unlikely that this is an emacs issue.
I think you should be sending your crash reports to
Apple.  Especially if this is a Rosetta issue as you
suspect.  My 2 cents ;o)

--

Rodney Sparapani, Associate Professor of Biostatistics
Chair ISBA Section on Biostatistics and Pharmaceutical Statistics
Institute for Health and Equity, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus


__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] [External] Re: [External] Re: [External] Re: emacs 27.1 crashes regularly on Mac M1

2021-03-05 Thread Richard M. Heiberger via ESS-help
I am out of my depth.  I downloaded
https://emacsformacosx.com/emacs-builds/Emacs-27.1-1-universal.dmg
When I unpacked it, it has the same files as vincent's distribution.
download
  -rwxr-xr-x   1 rmh  staff   7308192 Aug 12  2020 Emacs-x86_64-10_10
  -rw-r--r--@  1 rmh  staff  15484072 Aug 12  2020 Emacs-x86_64-10_10.pdmp
  -rwxr-xr-x   1 rmh  staff   7418304 Aug 12  2020 Emacs-x86_64-10_14
  -rw-r--r--@  1 rmh  staff  15484336 Aug 12  2020 Emacs-x86_64-10_14.pdmp
  -rw-r--r--@  1 rmh  staff  15484072 Aug 12  2020 Emacs.pdmp
   lrwxr-xr-x   1 rmh  staff16 Aug 12  2020 bin -> bin-x86_64-10_10
  drwxr-xr-x   6 rmh  staff   204 Aug 12  2020 bin-x86_64-10_10
  drwxr-xr-x   6 rmh  staff   204 Aug 12  2020 bin-x86_64-10_14
 
Vincent
  -rwxr-xr-x@  1 rmh  admin   7308192 Sep 16 10:09 Emacs-x86_64-10_10
  -rw-r--r--@  1 rmh  admin  15484072 Aug 12  2020 Emacs-x86_64-10_10.pdmp
  -rwxr-xr-x@  1 rmh  admin   7418304 Sep 16 10:09 Emacs-x86_64-10_14
  -rw-r--r--@  1 rmh  admin  15484336 Aug 12  2020 Emacs-x86_64-10_14.pdmp
  -rw-r--r--@  1 rmh  admin  15484072 Aug 12  2020 Emacs.pdmp
   lrwxr-xr-x   1 rmh  admin16 Sep 16 10:09 bin -> bin-x86_64-10_10
  drwxr-xr-x@  6 rmh  admin   192 Sep 16 10:09 bin-x86_64-10_10
  drwxr-xr-x@  6 rmh  admin   192 Sep 16 10:09 bin-x86_64-10_14

My March 1 crash report said
> Process:   Emacs-x86_64-10_14 [1112]
> Path:  
> /Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_14
> Identifier:org.gnu.Emacs
> Version:   Version 27.1 (9.0)
> Code Type: X86-64 (Translated)
> Parent Process:??? [1]
> Responsible:   Emacs-x86_64-10_14 [1112]

Which looks to be translated (Code Type: X86-64 (Translated))

Why is it running Emacs-x86_64-10_14 when the redirection
  lrwxr-xr-x   1 rmh  admin16 Sep 16 10:09 bin -> bin-x86_64-10_10
suggests it should be running 
Emacs-x86_64-10_10


I will not finish the installation (by dragging the newly downloaded Emacs to 
the Appliations folder)
until I hear further.

Rich


From: Richard M. Heiberger 
Sent: Friday, March 5, 2021 12:18
To: ess-help@r-project.org; Sparapani, Rodney
Subject: Re: [External] Re: [ESS]  [External] Re: [External] Re: emacs 27.1 
crashes regularly on Mac M1

good idea. i am now downloading a universal build instead of the x86-64 that 
Vincent Goulet distributed.
I will report back in a few days.


From: ESS-help  on behalf of Sparapani, Rodney 
via ESS-help 
Sent: Friday, March 5, 2021 09:17
To: ess-help@r-project.org
Subject: [External] Re: [ESS]  [External] Re: [External] Re: emacs 27.1 crashes 
regularly on Mac M1

Hi Rich:

To me, it seems unlikely that this is an emacs issue.
I think you should be sending your crash reports to
Apple.  Especially if this is a Rosetta issue as you
suspect.  My 2 cents ;o)

--

Rodney Sparapani, Associate Professor of Biostatistics
Chair ISBA Section on Biostatistics and Pharmaceutical Statistics
Institute for Health and Equity, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus


__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[ESS] ESS M-x R failing in a Windows installation

2021-03-05 Thread Steve Gutreuter via ESS-help
M-x R is returning the message "Searching for program: No such file or 
directory, Rterm" under MS Windows.


R 4.0.3 is installed in c:\Program Files\R\4.0.3, and Rterm.exe is 
present in c:/Program Files/R/R-4.0.3/bin/x64.

My path environment variable includes c:\Program Files\R\4.0.3.
R starts fine outside of Emacs.
My .emacs file includes:
   (require 'ess-rutils)
   (setq inferior-ess-r-program "c:/Program 
Files/R/R-4.0.3/bin/x64/Rterm.exe)
I am using Vincent Goulet's emacs-26.1-modified-2.exe and 
emacs-27.1-modified-1.exe which bundle ESS within the Emacs installation.
Everything worked fine under Emacs 26.1 and earlier.  I upgraded to 
Emacs 27.1 and M-x R still worked.  I backed down to Emacs 26.1 and now 
M-x R is broken.


I am baffled as to why ESS is not finding R.  Any clues?

Many thanks
--
Steve Gutreuter

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] ESS M-x R failing in a Windows installation

2021-03-05 Thread Jeremie Juste via ESS-help
Hello Steve,

Yest this is a known problem on windows.

A temporary solution might be to use the command M-x ess-r-newest.
For my part I have rebinded  the above command to a key C-'.
It is not the best solution but it works for me.
If I come up with a better fix I'll update.

HTH,
Jeremie




On Friday,  5 Mar 2021 at 15:51, Steve Gutreuter via ESS-help wrote:
> M-x R is returning the message "Searching for program: No such file or
> directory, Rterm" under MS Windows.
>
> R 4.0.3 is installed in c:\Program Files\R\4.0.3, and Rterm.exe is
> present in c:/Program Files/R/R-4.0.3/bin/x64.
> My path environment variable includes c:\Program Files\R\4.0.3.
> R starts fine outside of Emacs.
> My .emacs file includes:
>    (require 'ess-rutils)
>    (setq inferior-ess-r-program "c:/Program
> Files/R/R-4.0.3/bin/x64/Rterm.exe)
> I am using Vincent Goulet's emacs-26.1-modified-2.exe and
> emacs-27.1-modified-1.exe which bundle ESS within the Emacs
> installation.
> Everything worked fine under Emacs 26.1 and earlier.  I upgraded to
> Emacs 27.1 and M-x R still worked.  I backed down to Emacs 26.1 and
> now M-x R is broken.
>
> I am baffled as to why ESS is not finding R.  Any clues?
>
> Many thanks

-- 
Jeremie Juste

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help