Re: [R] read SAS file

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed, 12 Nov 2008 10:44:45 -0500

To be precise even if you don't use dep = TRUE you get the packages that are listed in that package's DESCRIPTION file on the "Depends:" and "Imports:" lines but if you use dep = TRUE you also get the ones in the "Suggests:" line (and recursively for dependencies of dependencies).

On Wed, Nov 12, 2008 at 10:29 AM, Philip Twumasi-Ankrah <nana_kwadwo_derkyi_at_yahoo.com> wrote:
> If you are using the windows version, installing packages can be done easily from the prompt in the R work space by the following statement:
>
> install.packages("name_of_package", dep=TRUE)
>
> the part of dep=TRUE is to allow associated dependencies of packages tp be installed along side. This saves you the task of installing each dependency package seperately.
>
> Enjoy!
>
> A Smile costs Nothing
> But Rewards Everything
>
> Happiness is not perfected until it is shared
> -Jane Porter
>
>
> --- On Wed, 11/12/08, b g <shakespeare_1040_at_hotmail.com> wrote:
> From: b g <shakespeare_1040_at_hotmail.com>
> Subject: Re: [R] read SAS file
> To: p.dalgaard_at_biostat.ku.dk
> Cc: r-help_at_r-project.org, patrick.richardson_at_vai.org
> Date: Wednesday, November 12, 2008, 7:51 AM
>
> Another question. I want to install some of the user packages but it's not
> clear from the documentation how to specify the directory in which to place
> them. I need some help with this problem-how do I direct the install to the
> proper place? Should I set up a directory under my R directory (my preference)
> or elsewhere? Should I place all downloaded packages into the same directory or
> specify separate directories for each package? And will I need to specify some
> environment variable when using the package?
>
>
>> Date: Tue, 11 Nov 2008 14:41:57 +0100
>> From: P.Dalgaard_at_biostat.ku.dk
>> To: shakespeare_1040_at_hotmail.com
>> CC: patrick.richardson_at_vai.org; r-help_at_r-project.org
>> Subject: Re: [R] read SAS file
>>
>> b g wrote:
>>> Figured out the problem reading the file. Csv files must be ftp'd
> as ascii and xpt files as binary. However, both strategies result in the first
> few columns being omitted. I'd like to check which variables are on the
> file, much like proc contents in SAS, but I can't find the command to do
> this in the documentation. How is this done?> Date: Tue, 11 Nov 2008 10:35:28
> +0100> From: P.Dalgaard_at_biostat.ku.dk> To:
> shakespeare_1040_at_hotmail.com> CC: patrick.richardson_at_vai.org;
> r-help_at_r-project.org> Subject: Re: [R] read SAS file>> b g
> wrote:>> I must have this file in the wrong directory. I can see it and
> it's> spelled correctly in my command (including case) but I
> get:>>>>> library(foreign)>
> read.xport("cft2008R")>> Error in lookup.xport(file)>>>
> :> unable to open file: 'No such file or directory'> There are
> several> subdirectories under C:\Program Files\R\R-2.8.0\ .
> Should it be in one> of those?>> If it is a .xpt file, then you likely
> need "cft2008R.xpt".>> --> O__
>> ---- Peter Dalgaard ุster Farimagsgade 5, Entr.B> c/ /'_ --- Dept.
> of Biostatistics PO Box 2099, 1014 Cph. K> (*) \(*) -- University of
> Copenhagen Denmark Ph: (+45) 35327918> ~~~~~~~~~~ -
> (p.dalgaard_at_biostat.ku.dk) FAX: (+45) 35327907>
>>> _________________________________________________________________
>>> See how Windows(R) connects the people, information, and fun that are
> part of your life
>>> http://clk.atdmt.com/MRT/go/119463819/direct/01/
>>
>> (please see if you can do something about the lack of line wrap.....)
>>
>> Did you try lookup.xport()?
>>
>> --
>> O__ ---- Peter Dalgaard ุster Farimagsgade 5, Entr.B
>> c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
>> (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
>> ~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk) FAX: (+45) 35327907
>>
> _________________________________________________________________
>
> Live
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> 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.
>
>
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> 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
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. Received on Wed 12 Nov 2008 - 15:50:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Nov 2008 - 16:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive