Adding a closing bracket and dropping in between does work.

Using 

source(

instead of 

read.table(

shows the same behavior except that now 'source(....)' is inserted to give:  
'sourcesource(...)('

Same thing on R-devel.

Rob J. Goedman
[email protected]




On Mar 11, 2013, at 12:44 PM, David Winsemius <[email protected]> wrote:

> 
> On Mar 11, 2013, at 8:55 AM, Beale, Holly (NIH/NHGRI) [F] wrote:
> 
>> I think I've identified a bug. When I drag a text file into an edit window 
>> in R.app, sometimes the resulting inserted path and filename appear before 
>> the last character, even if the last character is not a newline. 
>> 
>> Thanks for taking a look.
>> 
>> To replicate:
>> new window
>> type only the following. do not follow with a newline
>> df=read.table(
>> drag a text file into window after "df=read.table("
>> 
>> result:
>> df=read.table\path\filename(
>> 
>> My config:
>> R version 2.15.2 (2012-10-26) -- "Trick or Treat"
>> R.app GUI 1.53 (6443) x86_64-apple-darwin9.8.0
>> Mac OS X 10.7.5
> 
> Also happens on a current version in R 2.15.3
> 
> [R.app GUI 1.53 (6451) x86_64-apple-darwin9.8.0]
> 
> 
> And thinking maybe I could fix it by starting with:
> 
> df=read.table("
> 
> ... It now drops the filename between the paren and the dbl-quote. I had not 
> ever seen this because I drop my file names into the session first and then 
> build my commands around them. 
> 
> -- 
> David Winsemius
> Alameda, CA, USA
> 
> _______________________________________________
> R-SIG-Mac mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac


        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to