Re: [R] R CMD BATCH question under Ubuntu 9.04

2009-08-18 Thread Cedrick W. Johnson
Did you try just running 'R CMD BATCH test.R' from within the /var/www directory? or if you're calling from a php script, perhaps something funky is going on with what it's interpreting as directories? I've seen some weird stuff happen where scripts will take web_home (/var/www) and do someth

Re: [R] Submit a R job to a server

2009-08-26 Thread Cedrick W. Johnson
Good Morning Deb- It's unclear (to me at least) what you are trying to do.. What is the "server" running? Is it running RServe for which you have a userid and pwd or is it just a plain "server" running some OS? *IF* this is the case (RServe): on the windows machine you will need to: install

Re: [R] How to avoid copy-paste when copying code from this list?

2009-09-19 Thread Cedrick W. Johnson
At least in windows, if you right click directly in the r console, there's a command for 'Paste commands only' which may be one solution... Not sure about other platforms.. hth c johannes rara wrote: Hi, How do you people avoid copy-pasting and manual editing of the code posted in this list?

Re: [R] Adressing multiple cores (CPUs)

2010-02-15 Thread Cedrick W. Johnson
Since you're on Windows, try the 'snow' package... the other suggestions are highly suggested and recommended as well hth c thomas.schwan...@mvv.de wrote: Dear all, I'm sitting here just in front of my new p...@work and wonder about the following question: * How can I adress multipl

Re: [R] Generating reports from database

2010-02-22 Thread Cedrick W. Johnson
List Requirements: " PLEASE do read the posting guide [1]http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. " With that said.. We need a *bit* more information What database are you connecting to? MySQL? MSSQL? Are yo

Re: [R] how to make R plot under Linux

2010-02-22 Thread Cedrick W. Johnson
I've managed to successfully use R (based on a remote Linux server) and have th e graphics piped back to me via SSH on a windows machine.. Take a look at XMing on the windows side, along with PuTTY. On 2/22/2010 2:41 PM, Vojtěch Zeisek wrote: Dne Po 22. února 2010 19:33:45 Kevin E. Thorpe n

Re: [R] how to install rattle for data mining

2010-02-25 Thread Cedrick W. Johnson
A little googling goes a LONG way: [1]http://datamining.togaware.com/survivor/Install_MS_Windows.html Explicity states how to install the 'XML' package required by R. References 1. http://datamining.togaware.com/survivor/Install_MS_Windows.html ___

Re: [R] Three most useful R package

2010-03-03 Thread Cedrick W. Johnson
I think Brian and Josh the two powerhouses behind quantmod and other finance related packages are working on a package called 'blotter' which is on r-forge which may be able to help you with keeping track and doing some testing of trading strategies. regards, cj On 3/3/201

Re: [R] Importing Time Series Data for an R Beginner

2010-03-11 Thread Cedrick W. Johnson
195 2004-03-02 16:34:00 372 2004-03-02 16:39:00 367 2004-03-02 16:44:00 383 2004-09-25 14:34:00 295 2004-09-25 14:39:00 281 2004-09-25 14:44:00 293 hth, c ps: my first message didn't make it to the list... apparently i had a

Re: [R] RServe across network

2010-04-26 Thread Cedrick W. Johnson
Is it [server/rserve] running on Windows or Linux? -c On 4/26/2010 2:19 PM, Nupur Gupta wrote: > Hi, > I am trying to connect to RServe across a network. > > I had put RServe on my local machine and it worked just fine. When am try to > connect to it across a network - it is able to go through the

Re: [R] Unable to connect to 'cran.r-project.org' on port 80.

2010-04-26 Thread Cedrick W. Johnson
There was a notice earlier today about a power outage affecting the main CRAN site.. For installing packages, try: install.packages("packagename", repos="http://cran.wustl.edu";) or to perform an upgrade: update.packages(repos="http://cran.wustl.edu";) until the main CRAN site has been resolve

Re: [R] Installing R on Suse 11.1 , cannot figure it out

2009-10-07 Thread Cedrick W. Johnson
ly hassle-free (5 workstations). I just finished setting up a small cluster (3) of ubuntu R instances in under 30 minutes. So, your mileage may vary. I've found Ubuntu to be rather simple to install R instances. Hope this helps c = *Cedrick W. Johnson* aolim)

Re: [R] WAR file installation

2009-10-26 Thread Cedrick W. Johnson
op of my head/home computer, but someone did write an R / Web interface (using J2EE/Struts). Perhaps someone else on the list can help? rgds, cedrick -- ===== *Cedrick W. Johnson* **note new updated phone #'s office) 203.340.3442 cell) 646.434.8052 aolim) ce

Re: [R] Java and R

2009-11-09 Thread Cedrick W. Johnson
Grzes wrote: Hello, I'm looking for any manual about using Java and R for begginers. Do you know any? Take a look at Rserve, rJava, etc.. -cj __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

Re: [R] R process gets killed spontaneously

2009-11-10 Thread Cedrick W. Johnson
I think he was referring to the actual 'screen' command.. but, I digress... Is there any way you can put your commands in a script and execute them from the command line so that you see the actual memory and GC output from R in realtime? I use the following (in WinXP) to debug any faulty proce

Re: [R] Auto execute R script

2009-11-12 Thread Cedrick W. Johnson
This is on windows I am assuming? On linux, you can write a script, then have cron execute it, similar to below, only I think you need to replace Rterm with R CMD or something. Put this in a batch file, and create a scheduled task. Make sure to put the "start in" or "working directory" to the

Re: [R] R or C++ on FreeNX servers

2009-11-25 Thread Cedrick W. Johnson
All FreeNX allows you to do is access a regular linux machine using X over SSH as opposed to ssh'ing in, redirecting the X-display back to your local machine (running a xserver locally).. You can install R on the machine(s) just as you would normally, and if the machines are in some sort of cl

Re: [R] Reference to R in Publication

2009-12-15 Thread Cedrick W. Johnson
R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. -c Shawn Way wrote: Magazine: Pharmaceutical Manufacturing Date: Nov/Dec 2009 Title: What Your ICH Q8 Design Space Needs: A Multivar

Re: [R] Reference to R in Publication

2009-12-15 Thread Cedrick W. Johnson
My mistake... long day -c Peter Dalgaard wrote: Cedrick W. Johnson wrote: R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. I don't think it was a ques

Re: [R] Two Easy questions

2009-12-24 Thread Cedrick W. Johnson
Jose Narillos de Santos wrote: Second, I have read that with R we can dowload directly stock market historical information from google or yahoo. Can anyone guide me how to do it or more easily where I can find information (a web link or something similar) Thanks for all¡¡¡ Check out getSymbol

Re: [R] R and Finance - EAD, LGD, PD

2009-12-27 Thread Cedrick W. Johnson
Howdy- You may want to check out the R-sig-finance list and search through the postings here: http://n4.nabble.com/Rmetrics-f925806.html There's quite a few packages in the CRAN taskviews as well: http://cran.r-project.org/web/views/Finance.html -cj Ricardo Gonçalves Silva wrote: Hi, I'm

Re: [R] Creating directories & folders

2010-01-24 Thread Cedrick W. Johnson
Try: for (i in 1:length(folders)) { dir.create(paste(parent.dir,folders[i], sep="/")) } -cedrick Steven Kang wrote: Dear R users, I would like to create the following 3 folders (FUND1, FUND2, MARINE) within the 'parent.dir' as defined below. FUND1 <- "FD1 Q4 2009" FUND2 <- "FD2 Q4 2009" M

Re: [R] Creating directories & folders

2010-01-24 Thread Cedrick W. Johnson
I misread the initial problem, sorry (fixing that one with more red bull)... Try this: FUND1 <- "FD1 Q4 2009" FUND2 <- "FD2 Q4 2009" MARINE <- "MARINE Q4 2009" folders <- c(FUND1, FUND2, MARINE) folders [1] "FD1 Q4 2009""FD2 Q4 2009""MARINE Q4 2009" for (i in 1:length(folders)) { dir.

Re: [R] R-Help

2010-02-06 Thread Cedrick W. Johnson
Try: KoreaAuto <- read.table('Documents/Rutgers/HW1Data') -or- KoreaAuto <- read.table('Users/raviramaswamy/Documents/Rutgers/STT 586/HW1 Data.txt') __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] how to make JAVA available for R use?

2010-06-15 Thread Cedrick W. Johnson
I can't resist http://www.lmgtfy.com/?q=set+windows+PATH+variable On 6/15/2010 8:37 AM, yi li wrote: i've just installed the package"xlsx",which is used for read,write,format Excel 2007 files, as i loaded the package ,i was told to intall the package rJava, the problem was that i didn't h

Re: [R] Parallel computing on Windows (foreach)

2010-06-16 Thread Cedrick W. Johnson
Here's what I do to get processors on my Windows machine (it should work for dual cores as well) fully engaged in a calculation (wow I like that) require(snow) require(doSNOW) require(foreach) #change the 8 to however many cores/phys processors you have on your machine cl.tmp = makeCluster(rep(

Re: [R] Using Ubuntu as a Server

2010-07-10 Thread Cedrick W. Johnson
You can do that, as well as install RKWard if you want a "gui" front end and use ssh/x11 forwarding. If I think what you want to do is control a remote ubuntu instance via windows using Tinn, I don't think that is possible. You could look into Rserve/etc and possibly try to go that route as wel

Re: [R] unsubcribe

2010-05-04 Thread Cedrick W. Johnson
https://stat.ethz.ch/mailman/listinfo/r-help On 5/4/2010 2:25 PM, Galois Theory wrote: [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide ht

Re: [R] Java API to pass commands to R console from Java Program

2010-05-15 Thread Cedrick W. Johnson
You could take a look at RServe on r-forge, perhaps that's what you're looking for? -c On 5/14/2010 4:03 PM, NewRUser wrote: Hi all, I am a new user of R and we have to integrate R into Java. I have downloaded and installed R and rJava/JRI and set up the environment. I was able to run the r

Re: [R] Time problems (POSIXct)

2010-05-20 Thread Cedrick W. Johnson
try: as.POSIXct(datestr, format="%y-%m-%d") for the first timeseries... -c On 5/20/2010 10:48 AM, Research wrote: Hello, I have a zoo time series object (say a) with the following time stamp/format [1] "1950-01-03 GMT" "1950-01-04 GMT" "1950-01-05 GMT" "1950-01-06 GMT" [5] "1950-01-09 GM

Re: [R] Best Server Options

2010-05-24 Thread Cedrick W. Johnson
this *may* help, my setup is as follows: I have 2 boxes, one a Windows Server 2008 instance. I installed R 2.10.1 and 2.11 on them, and used the Remote App function to create a remote app "icon" that users (x 4 currently) put on their desktop. Yes, that setup needs Terminal Services to work, b

[R] 2.11.0 on ubuntu (hardy) inadvertently installed

2010-05-28 Thread Cedrick W. Johnson
Hi- Looks like this morning, I did the ultimate in foobar to a main prod box. I was using apt-get upgrade on the box and totally missed the fact that my entire R installation went from 2.10.0 to 2.11.0. I now have a bunch of pkgs that aren't loading due to the fact that they were built befor

Re: [R] Package not on CRAN mirrow - what now?

2010-06-10 Thread Cedrick W. Johnson
Just as a side note, perhaps this will help someone else who comes across this topic of packages no longer being on CRAN and built before 2.11.0 in that case they can't install the package... I use package 'sma' which was last maintained sometime in the mid 2000's and obviously it's not on CRA

Re: [R] Importing Time Series Data for an R Beginner

2010-03-11 Thread Cedrick W. Johnson (CJ)
Hi Clay- You may want to look at both the XTS package, in addition to 'strptime' and 'as.POSIXct' When I get datasets in Excel, what I normally do is change the date (column) format to -mm-dd.. But that's due to my own shortcomings with date formatting in R. Here's a quick example: >