Martin Batholdy | 1 Oct 2009 01:12

(windows xp) start script on startup / double clicking on the script

hi,

I am still trying to figure out how it is possible to start an R- 
script via the R-GUI directly by double-clicking on the script file in  
windows xp.
On Mac OS I have the option "start script in the editor" in the  
preferences.

But on windows XP I always get the "ARGUMENT  'c:\...\...'    
___ignored___" error when I try to associate the .R extension with the  
R program file.

My problem is that I don't have the possibility to install any other  
programs.
And the people using the script don't know R.
So its really important to find a way to start a script just by double  
clicking on the file.

Now I was wondering if it is possible to make a shortcut of the R  
script and change the start options.
I am not familiar with windows - does someone know if that is a  
possible way to get R code to the R console (in the R gui) on startup?

Or any other clues / tips?

thanks for any help!

Gabor Grothendieck | 1 Oct 2009 01:41
Picon

Re: (windows xp) start script on startup / double clicking on the script

Try creating a Windows batch file along these lines:

setlocal
set R_PROFILE_USER=C:\tmp\myscript.R
"C:\Program Files\R\R-2.9.x\bin\Rgui.exe"
endlocal

and double click it.  The set line sets it up to run your script and
the next line runs R.

On Wed, Sep 30, 2009 at 7:12 PM, Martin Batholdy
<batholdy <at> googlemail.com> wrote:
> hi,
>
> I am still trying to figure out how it is possible to start an R-script via
> the R-GUI directly by double-clicking on the script file in windows xp.
> On Mac OS I have the option "start script in the editor" in the preferences.
>
> But on windows XP I always get the "ARGUMENT  'c:\...\...'   ___ignored___"
> error when I try to associate the .R extension with the R program file.
>
>
> My problem is that I don't have the possibility to install any other
> programs.
> And the people using the script don't know R.
> So its really important to find a way to start a script just by double
> clicking on the file.
>
>
> Now I was wondering if it is possible to make a shortcut of the R script and
(Continue reading)

Nordlund, Dan (DSHS/RDA | 1 Oct 2009 01:52
Favicon

Re: Rounding error in seq(...)

> -----Original Message-----
> From: Peter Dalgaard [mailto:p.dalgaard <at> biostat.ku.dk]
> Sent: Wednesday, September 30, 2009 3:58 PM
> To: Nordlund, Dan (DSHS/RDA)
> Cc: Douglas Bates; r help
> Subject: Re: [R] Rounding error in seq(...)
> 
<<<snip>>>
> >
> > The first page of this document references:
> http://www.stats.ox.ac.uk/~ruth/RCourse/Numerics.pdf
> >
> >  ‘The Elements of Programming Style’ by Kernighan and Plauger
> 
> Actually, it cites the R FAQ, Q. 7.31 in extenso...
> 
Right you are Peter.  I just Googled the phrase and looked at the immediate context of the phrase, and not much
else of the document (since I was looking for a Kernighan reference).

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA  98504-5204

Kon Knafelman | 1 Oct 2009 03:18
Picon
Favicon

matrix exponential


Hi Guys,

Im trying to find the exponential of a matrix.

Can someone please help me do this?

Thanks a lot
 		 	   		  
_________________________________________________________________
View photos of singles in your area Click Here

=1&lage=18&uage=55&cl=14&sl=0&dist=50&po=1&do=2&trackingid=1046138&r2s=1&_t=773166090&_r=WLM_EndText
	[[alternative HTML version deleted]]

David Winsemius | 1 Oct 2009 03:38
Picon

Re: matrix exponential


On Sep 30, 2009, at 9:18 PM, Kon Knafelman wrote:

>
> Hi Guys,
>
> Im trying to find the exponential of a matrix.
>
> Can someone please help me do this?
>

Didn't we just do this one?

--

-- 

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

cls59 | 1 Oct 2009 04:05
Gravatar

Re: matrix exponential


Kon Knafelman wrote:
> 
> 
> Hi Guys,
> 
> Im trying to find the exponential of a matrix.
> 
> Can someone please help me do this?
> 
> Thanks a lot
>  		 	   	
> 

There was actually a very recent discussion of this, and related operations.
See:

http://www.nabble.com/implementation-of-matrix-logarithm-%28inverse-of-matrix-exponential%29-ts25628876.html

Also, some good advice for finding a function when you don't know it's name
but you do know what job it performs is to have R search all the help pages
in all the packages you have using the ?? command:

??'matrix exponential'

You will see the expm() function in the base package Matrix if you have a
newish version of R.

David Winsemius wrote:
> 
(Continue reading)

spencerg | 1 Oct 2009 04:14

Re: matrix exponential

RSiteSearch('exponential of a matrix')

      produced 982 matches. 

RSiteSearch('{exponential of a matrix}')

      produced 13. 

David Winsemius wrote:
>
> On Sep 30, 2009, at 9:18 PM, Kon Knafelman wrote:
>
>>
>> Hi Guys,
>>
>> Im trying to find the exponential of a matrix.
>>
>> Can someone please help me do this?
>>
>
> Didn't we just do this one?
>

--

-- 
Spencer Graves, PE, PhD
President and Chief Operating Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567
(Continue reading)

Ben Bolker | 1 Oct 2009 04:14
Picon

Re: Overview of error and warning messages for teaching + examples

Tal Galili <tal.galili <at> gmail.com> writes:

> 
> Hi Joris,
> 
> Good luck with your work.
> 
> I know how to set up a wiki. But I wouldn't do it for just 1 page. And also,
> if you have little experience with it - I am not sure you would find it easy
> to "jump" into it.
> I'll have a look around to see what other collaborative tools there are out
> there.
> 

  Remind me why this shouldn't just be done on the official R
wiki, wiki.r-project.org ??

David Winsemius | 1 Oct 2009 04:17
Picon

Re: matrix exponential


On Sep 30, 2009, at 10:14 PM, spencerg wrote:

> RSiteSearch('exponential of a matrix')
>
>     produced 982 matches.
>
> RSiteSearch('{exponential of a matrix}')
>
>     produced 13.
>
>

Yes, I know.

> David Winsemius wrote:
>>
>> On Sep 30, 2009, at 9:18 PM, Kon Knafelman wrote:
>>
>>>
>>> Hi Guys,
>>>
>>> Im trying to find the exponential of a matrix.
>>>
>>> Can someone please help me do this?
>>>
>>
>> Didn't we just do this one?
>>
>
(Continue reading)

cls59 | 1 Oct 2009 04:31
Gravatar

Re: re ading and analyzing a word document


PDXRugger wrote:
> 
> Howdy Y'all, 
> 
> So i am looking to read a word document in the following formats(.doc) or
> any type of accessible word processor software (e.g. text .txt, notepad,
> etc).  Had the ability to search certain words, for instance "banana",
> "peacock","Weapons" "Mass" "Destruction".  Then i could summarize and view
> the results.  i looked and the only thing i could find was the below where
> i want to analyze "letter.doc" and look for the words mentioned in quotes
> above.  Its aparently wrong but im wondering if this is even possible. 
> Please advise.  Thanks 
> 
> In Solidarity
> JR
> 

Well... you could make a vector of the words you want to find:

to.find <- c( 'banana', 'peacock', 'Weapons' )

Read in the file...

file.text <- readLines( 'myFile.txt' )

And recursively apply the grep command in order to determine which lines
contain matches for your words:

line.matches <- unlist( lapply( to.find, grep, x = file.text ) )
(Continue reading)


Gmane