Hi, I generally prefer using the functions saveObject() and loadObject() from the R.utils package. I like that you load directly to an object in the R workspace. HTH, Ivan -- Ivan Calandra, ATER University of Reims Champagne-Ardenne GEGENAA - EA 3795 CREA - 2 esplanade Roland Garros 51100 Reims, France +33(0)3 26 77 36 89 ivan.calandra at univ-reims.fr https://www.researchgate.net/profile/Ivan_Calandra Le 05/02/15 14:07, Olivier Crouzet a ?crit :> Hi, have a look at save() and load(). > > You can save part of your workspace to a file (save()) and load it from this file (load()). Of course the file format is R specific (but its specifications are free) You may easily share the file with other R users. > > Olivier. > > -- > Olivier Crouzet > LLING - Laboratoire de Linguistique de Nantes - EA3827 > Universit? de Nantes > > -----Original Message----- > From: Alaios via R-help <r-help at r-project.org> > Sender: "R-help" <r-help-bounces at r-project.org>Date: Thu, 5 Feb 2015 12:57:42 > To: R-help Mailing List<r-help at r-project.org> > Reply-To: Alaios <alaios at yahoo.com> > Subject: [R] save structure to be accesible later > > Dear all,I have a function that returns the following list. At the end I will call my function 1000 times and I want to keep for each of these 1000 "results" (the structure as given below)in an order to be accessible later (Load the 1000 results and access them within a for loop for example) > How should I approach the issue?I would like to thank you for your exampleRegardsAlex > P,S The result of my function > > > > str(fitcass1) > List of 10 > $ parameters :'data.frame': 2 obs. of 3 variables: > ..$ pi : num [1:2] 0.833 0.167 > ..$ mu : num [1:2] 8828 110000 > ..$ sigma: num [1:2] 18085 1543 > $ se :'data.frame': 2 obs. of 3 variables: > ..$ pi.se : num [1:2] NA NA > ..$ mu.se : num [1:2] NA NA > ..$ sigma.se: num [1:2] NA NA > $ distribution: chr "gamma" > $ constraint :List of 8 > ..$ conpi : chr "NONE" > ..$ conmu : chr "NONE" > ..$ consigma: chr "NONE" > ..$ fixpi : NULL > ..$ fixmu : NULL > ..$ fixsigma: NULL > ..$ cov : NULL > ..$ size : NULL > $ chisq : num 52.4 > $ df : num 5 > $ P : num 4.57e-10 > $ vmat : num [1:5, 1:5] NA NA NA NA NA NA NA NA NA NA ... > $ mixdata :Classes ?mixdata? and 'data.frame': 11 obs. of 2 variables: > ..$ X : num [1:11] 1e+04 2e+04 3e+04 4e+04 5e+04 6e+04 7e+04 8e+04 9e+04 1e+05 ... > ..$ count: int [1:11] 993 137 82 30 21 5 7 14 21 2 ... > $ usecondit : logi FALSE > - attr(*, "class")= chr "mix" > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Windows 7, 64-bit. I am trying to install RStudio. Before installing RStudio, I installed R 3.1.2. During the installation or R, I installled (as per the default) 32- and 64-bit packages. When I tried to install RStudio, I received the message R does not appear to be installed. Please install R before using RStudio. I know R is installed, beacuse I am able to run R. Can anyone suggest what I can do to get RStudio installed? Thank you John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine Baltimore VA Medical Center 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524 (Phone) 410-605-7119 (Fax) 410-605-7913 (Please call phone number above prior to faxing) Confidentiality Statement: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
Dear John, I think you have to specify the directory of R in the R-studio installation process. Somehow the installation wizard is unable to find the address of R in your system. Thanks & Regards, Arnab Arnab Kumar Maity Graduate Teaching Assistant Division of Statistics Northern Illinois University DeKalb, IL 60115 Email: maity at math.niu.edu Ph: 779-777-3428 On Thu, Feb 12, 2015 at 10:22 AM, John Sorkin <JSOrkin at grecc.umaryland.edu> wrote:> Windows 7, 64-bit. > > I am trying to install RStudio. Before installing RStudio, I installed R > 3.1.2. During the installation or R, I installled (as per the default) 32- > and 64-bit packages. When I tried to install RStudio, I received the message > R does not appear to be installed. Please install R before using RStudio. > I know R is installed, beacuse I am able to run R. > Can anyone suggest what I can do to get RStudio installed? > Thank you > John > > John David Sorkin M.D., Ph.D. > Professor of Medicine > Chief, Biostatistics and Informatics > University of Maryland School of Medicine Division of Gerontology and > Geriatric Medicine > Baltimore VA Medical Center > 10 North Greene Street > GRECC (BT/18/GR) > Baltimore, MD 21201-1524 > (Phone) 410-605-7119 > (Fax) 410-605-7913 (Please call phone number above prior to faxing) > > Confidentiality Statement: > This email message, including any attachments, is for ...{{dropped:16}}
Ah, ask in the RStudio support area? --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. On February 12, 2015 11:22:56 AM EST, John Sorkin <JSOrkin at grecc.umaryland.edu> wrote:>Windows 7, 64-bit. > >I am trying to install RStudio. Before installing RStudio, I installed >R 3.1.2. During the installation or R, I installled (as per the >default) 32- and 64-bit packages. When I tried to install RStudio, I >received the message >R does not appear to be installed. Please install R before using >RStudio. >I know R is installed, beacuse I am able to run R. >Can anyone suggest what I can do to get RStudio installed? >Thank you >John > >John David Sorkin M.D., Ph.D. >Professor of Medicine >Chief, Biostatistics and Informatics >University of Maryland School of Medicine Division of Gerontology and >Geriatric Medicine >Baltimore VA Medical Center >10 North Greene Street >GRECC (BT/18/GR) >Baltimore, MD 21201-1524 >(Phone) 410-605-7119 >(Fax) 410-605-7913 (Please call phone number above prior to faxing) > >Confidentiality Statement: >This email message, including any attachments, is for t...{{dropped:12}}
On 2/12/2015 10:22 AM, John Sorkin wrote:> Windows 7, 64-bit. > > I am trying to install RStudio. Before installing RStudio, I installed R 3.1.2. During the installation or R, I installled (as per the default) 32- and 64-bit packages. When I tried to install RStudio, I received the message > R does not appear to be installed. Please install R before using RStudio. > I know R is installed, beacuse I am able to run R. > Can anyone suggest what I can do to get RStudio installed? > Thank you > John >Tools > Global opetions > general, and fill in the top box to point the top line at the Installed version of R you wish to use. Usually, it will do a pretty good job of finding it on its own, but you can always adjust you version to suit here. Rob> John David Sorkin M.D., Ph.D. > Professor of Medicine > Chief, Biostatistics and Informatics > University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine > Baltimore VA Medical Center > 10 North Greene Street > GRECC (BT/18/GR) > Baltimore, MD 21201-1524 > (Phone) 410-605-7119 > (Fax) 410-605-7913 (Please call phone number above prior to faxing) > > Confidentiality Statement: > This email message, including any attachments, is for ...{{dropped:18}}