Re: [R] Creating an R package in windows- where to put images?

2012-12-09 Thread Subramanian S
Thank you Jeff for that.. Thanks Tyler.. that worked.. i put the image in inst/extdata and then built the pkg..and gave the path using system.file().. thanx again [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https:/

[R] Creating an R package in windows- where to put images?

2012-12-09 Thread Subramanian S
My R version: 2.15.1- windows While creating an R package in windows, i want to include an image (a .gif image) that will finally be in the package. A function in my package will call the gif image. Where should i put the images before running "Rcmd build mypkg" or "Rcmd INSTALL --build mypkg", so

[R] Error msg in rpanel

2012-09-09 Thread Dr Subramanian S
I am working on the r panel package. Now if i have a function that uses a radiogroup button, and if i attempt to run the function from inside the rpanel menu, i get this error: Error in panel$intname : $ operator is invalid for atomic vectors However if i run the function per se i.e. not from in

[R] How to display result of a calculation within panel

2012-04-10 Thread Subramanian S
How do i make rpanel print the value of a calculation in the rpanel itself - in a space just below the submit button? The calculation uses user inputs (using rp.textentry) and takes the values entered as input to the function via function (myRpanel) e.g. myfunction <- function(myRpanel){ z<- my

[R] How to Get option prices of first date and expiry date alone

2011-07-08 Thread Subramanian S
i have option prices of 1 month option contract for several days in a csv file. The data is in chronological order of dates. Within each date, price quotes for each strike appears (about 30 strikes per month- so there are in 30 rows per day for many days and many months). i want only the quote on t

[R] installing packages from a directory on the computer

2010-06-22 Thread Subramanian S
i tried pkgs <- c("pkg1", "pkg2", "pkg3") install.packages(pkgs, repos = NULL, + contriburl = "file:///C:/R/packages/bin/windows/contrib/2.11", + dependencies = TRUE) i have put the zip files in C:/R/packages/bin/windows/contrib/2.11 *** and extracted the package

[R] Installing packages from folder on the computer

2010-06-22 Thread Subramanian S
i am able to install zip files of packages from local zip files using the file.choose() for the package argument in install.packages() function in R console and also from the Packages menu>install from local zip files. But if there are many packages to install (say >15 or 20), then i have to factor

[R] installing packages from a directory on the computer

2010-06-22 Thread Subramanian S
Peter, i tried the file.choose() method of installing from local zip files; its easy to install few packages that way. but you see if there are many packages(say >10 or 12), then i wont be able to install the packages on which the packages that i want to install depend because i guess i cant set de

[R] installing packages from a directory on the computer

2010-06-22 Thread Subramanian S
i wish to know how to set a folder in computer as a mirror from which i can install packages i am aware of the menu approach- "Packages>install from local zip files" but i wish to know the command line approach because i dont have internet access on the computer where i will be using R. i have pu

[R] installing packages from a directory on the computer

2010-06-22 Thread Subramanian S
i wish to know how to set a folder in computer as a mirror from which i can install packages i am aware of the menu approach- "Packages>install from local zip files" but i wish to know the command line approach because i dont have internet access on the computer where i will be using R. i have pu