Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
Greetings! 2011/9/20 David Winsemius : There is probably an environment/scoping problem as you stated. I am using ESS and org-mode. I started a new R code block and the problem disappeared. Thanks for your kind feedback. Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread David Winsemius
On Sep 20, 2011, at 6:49 PM, Henri-Paul Indiogine wrote: My objective is to define a pattern for a grep() statement. Thanks, Henri-Paul You are not illustrating the problem with enough detail to determine the source of your errors. The errors do not appear when tested in what appears to

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread R. Michael Weylandt
Can you perhaps provide us a minimal working script in which this assignment doesn't happen? If it really is just the line pattern <- "[Aa]ccountability" in the main body of the script, I can't for the life of me guess why it wouldn't work. General keywords that come to mind are things like "envi

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
My objective is to define a pattern for a grep() statement. Thanks, Henri-Paul -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: hindiogine Website: http://people.cehd.tamu.edu/~sindiogine _

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
Hi Sarah! 2011/9/20 Sarah Goslee : >> What works? Assigning a string to a function, thus replacing the >> function in your search >> path? Bad choice for character variable name on my part. How about this? pattern <- "[Aa]ccountability" If I enter this at the CLI and then type "pattern", R ret

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Sarah Goslee
My apologies: not the name of a function, despite ?regexp having a return value. But the rest of my questions are still relevant. On Tue, Sep 20, 2011 at 6:32 PM, Sarah Goslee wrote: > What works? Assigning a string to a function, thus replacing the > function in your search > path? > > Or is th

Re: [R] Works from CLI but not from prompt

2011-09-20 Thread Sarah Goslee
What works? Assigning a string to a function, thus replacing the function in your search path? Or is that what doesn't work? What do you expect? What are you trying to do? Using what commands? Sarah On Tue, Sep 20, 2011 at 6:19 PM, Henri-Paul Indiogine wrote: > Greegings! > > Any idea why this

[R] Works from CLI but not from prompt

2011-09-20 Thread Henri-Paul Indiogine
Greegings! Any idea why this works from the command line, but not from a source file? This is driving me (more) insane. regexp <- "[Aa]ccountability" Thanks! -- Henri-Paul Indiogine Curriculum & Instruction Texas A&M University TutorFind Learning Centre Email: hindiog...@gmail.com Skype: h