Well, thanks a lot for the replies. At the end I was able to install
igraph.

Now. the problem is that I have a  *.rdata file. It contains an object "g2".
It is a list with 9 elements.

> str(g2)
List of 9
$ : num 7200
$ : logi FALSE
$ : num [1:123504] 1 2 3 4 5 6 7 8 9 10 ...
$ : num [1:123504] 0 0 0 0 0 0 0 0 0 0 ...
$ : num [1:123504] 0 1 2 3 4 5 6 7 8 9 ...
$ : num [1:123504] 0 1 2 3 4 5 6 7 8 9 ...
$ : num [1:7201] 0 0 1 2 3 4 5 6 7 8 ...
$ : num [1:7201] 0 51 51 53 53 53 53 53 54 56 ...
$ :List of 4
 ..$ : num [1:2] 1 0
 ..$ : Named list()
 ..$ : list()
 ..$ : list()
- attr(*, "class")= chr "igraph"

This object "g2" is an igraph.

> is(g2) [1] "igraph"

Now, how can I open this *.rdata file using igraph?? I am not able to find
an appropriate command for it.

Thanks,
Pragya



On Sun, Oct 31, 2010 at 2:19 AM, Paul Johnson <[email protected]> wrote:

> On Sat, Oct 30, 2010 at 1:34 AM, pragya agarwal <[email protected]>
> wrote:
> > Hi
> >
> > I am trying to install R-igraph, but when I issue the command :
> >
> > install.packages("igraph", lib="~/.R/library")
> >
> > in the R session, I get the following error:
> >
> > Warning in install.packages("igraph", lib = "~/.R/library") :
> >  'lib = "~/.R/library"' is not writable
> > Error in install.packages("igraph", lib = "~/.R/library") :
> >  unable to install packages
>
> I believe this means something went wrong, and in the past you may
> have run something as root or another user.  Or that you have the
> library in .R, but the default in Ubuntu deb packaging is not a dot
> file, it is R/x86_64-pc-linux-gnu-library.  That's a setting in
> /etc/R/Renviron. I have:
>
> R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/2.12'}
>
> R_LIBS_SITE=${R_LIBS_SITE-'/usr/local/lib/R/site-library:/usr/lib/R/site-library:/usr/lib/R/library'}
>
> Assuming that .R/library is what you really want to use, just give
> yourself permission there.
>
> Below, suppose "username" is you user login name, the one you want to
> own the files.
>
> You can re-set the permissions.  This isn't an R thing, it is just a
> linux thing.  Open a terminal
>
> # cd
> # ls -la .R
>
> That should let you see.
>
> # cd .R
> # chown -R username library
>
> "username" will now own library and everything below in it.
>
> PJ
>
> --
> Paul E. Johnson
> Professor, Political Science
> 1541 Lilac Lane, Room 504
> University of Kansas
>

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Debian mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to