similar to: using assign with lists

Displaying 20 results from an estimated 10000 matches similar to: "using assign with lists"

2008 Oct 17
1
how to list variables enclosed in an environment
I'm having trouble with a Bioconductor package, an variable expected in an environment does not seem to be there. As part of my investigation of the problem (most likely on my end) I'd like to list the variables contained in an environment. If you have an environment loaded, lets call it "pkgEnv', how does one find what it does contain? Mark
2009 Sep 16
4
2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze
I just downloaded R-devel and when loaded it immediately segfaults. I'm not sure how much or what sort of diagnostic info and can provide, but below is my build script, my console output, and the output of uname -r. I am currently dependent on the development version of a package, so I'd like to get R-devel up and running if possible. I am sure there is more info I can provide, but before
2008 Sep 24
1
splitting strings efficiently
I have a very long list of strings. Each string actually contains multiple values separated by a semi-colon. I need to turn each string into a vector of the values delimited by the semi-colons. I know I can do this very laboriously by using loops, nchar, and substr, but it is terribly slow. Is there a basic R function that handles this situation? If not, is there perhaps a faster way to do it than
2008 Mar 12
2
subset list based on logical within element flag
I have a very long list that I'd like to subset based on a logical value within each element. Example below. I'd like to get just those list elements for further study whose $sig.cor slot is TRUE. In this example, I'd only want element [[2]]. Should be simple, I know. How can I do this? Thanks, Mark > gene.pair.tf.lst [[1]] [[1]]$gene.pair [1] "Lgals1:Pxmp2"
2007 Aug 03
2
RSPython won't load in R 2.6.0 under Linux
I can compile RSPython without difficulty, been when I try to load it, I get the error messages below. Also below are some cryptic warnings I get on R boot (in case these are pertinent) and my sessionInfo(). Any help is appreciated. Thanks, Mark Warning messages: 1: In .updateMethodsInTable(fdef, where, attach) : Couldn't find methods table for "conditional", package
2008 Oct 14
1
XML_1.98-0 fails to build on Debian Lenny with gcc 4.3.2 and R-beta 2.8.0
Subject pretty much says it all. Wonder if there is there is some code in XML that the new gcc doesn't like? See output below: * Installing *source* package 'XML' ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking
2009 May 30
2
'options=utils::recover' not working in .Rprofile or within R
For years I have been using options(error = recover) either in .Rprofile or from within R for debugging purposes. The functionality of this appears to have changed and I can't recover it (no pun intended) using the ?options help page. How can I get the old functionality back, particularly from within .Rprofile? A specific line entry would be appreciated. An example, the help page, and
2008 Jun 03
2
benchmarking R installations
Recently I posted to this list with a question about using the Intel 10.1 compilers in building R and one response was basically, "why in the heck would you want to do that?" The answer is that my sysadmin believes that there will be a performance boost with the Intel vs. Gnu compilers on our Linux cluster, of which I am one of many users. Wanting to be a good citizen and use my machine
2007 Dec 10
2
00LOCK error with site-library
I have identical R.profiles and R_HOME directories set up on both my local machine and a remote linux cluster. To keep my libraries and R install separate, I use a site-library on both machines. The first line of my .Rprofile is: '.libPaths(new= "~/R_HOME/site-library") #tell R where site-library is' Until R-2.6.0 this was working fine on both machines, but since I have been
2008 May 06
1
trouble installing Rmpi on 64-bit Ubuntu 8.04 with openmpi
Subject pretty much says it all. I am running 64-bit Ubuntu 8.04, i.e. Hardy Heron, have openmpi installed, and get the following error message with attempted install of Rmpi. sessionInfo() follows. Mark checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes
2009 Aug 28
1
problems with strsplit using a split of ' \\\ ' : a regex problem
I have a vector of gene symbols, some of which have multiple aliases. In the case of an alias, they are separated by ' \\\ '. Here is a real world example, which would represent one element of my vector: Eif4g2 /// Eif4g2-ps1 /// LOC678831 What I would like to do is input the vector into a function and output a vector with just the first alias of each element (or, if there are no aliases,
2011 May 17
1
R crashes if "toFile" given "~/" in Linux envirnonment
I was running some sample code from a help page tonight and wished to redirect the sample output to my Desktop under Linux (Mint-Debian 64 if it makes a different). I was surprised to find that file name expansion using the ubuquitious "~/" was not recognized, in fact it caused R to crash. Is this expected behavior? See my output below and sessionInfo(). Also, not shown, but
2008 May 06
3
rggobi is crashing R-2.7.0
I am running 64-bit Ubuntu 8.04 and when I invoke rggobi the interactive graph displays but R crashes. See my sessionInfo() and a short example below. Ggobi and rggobi installed without complaints. Mark > sessionInfo() R version 2.7.0 Patched (2008-05-04 r45620) x86_64-unknown-linux-gnu locale:
2008 May 03
1
error with R-patched (2008-05-02 r45591)
Just installed the latest R-patched and get the error seen at the end of the output below. Don't know what to make of this but thought I should report it. In general, when installing the latest version of R, should one use R-latest or R-patched? R-latest is stable, but one would assume that R-patched includes the latest bug fixes. Mark mkimpel-m90 ~/R_HOME/R-patched/R-build/bin: ./R R
2008 Jun 27
1
RBGL not compiling on Debian Lenny with c++ (Debian 4.3.1-2) 4.3.1
I've just installed Debian Lenny and RBGL fails compilation with the following errors (sessionInfo() follows). * Installing *source* package 'RBGL' ... untarring boost include tree... ** libs g++ -I/home/mkimpel/R_HOME/R-patched/R-build/lib64/R/include -I/usr/local/include -IboostIncl -fpic -g -O2 -c bbc.cpp -o bbc.o In file included from /usr/include/c++/4.3/ext/hash_set:64,
2008 Mar 05
4
vertex labels in igraph from adjacency matrix
I am getting some unexpected results from some functions of igraph and it is possible that I am misinterpreting the vertex numbers. Eg., the max betweenness measure seems to be from a vertex that is not connected to a single other vertex. Below if my code snippet: require(igraph) my.graph <- graph.adjacency(adjmatrix = my.adj.matrix, mode=c("undirected")) most.between.vert <-
2009 Aug 20
5
help with regular expressions in R
I'm having trouble achieving the results I want using a regular expression. I want to eliminate all characters that fall within square brackets as well as the brackets themselves, returning an "". I'm not sure if it's R's use of double slash escapes or something else that is tripping me up. If I only use one slash I get 1: '\[' is an unrecognized escape in a
2009 Jul 08
2
can't get rJava to install on Linux
Having difficulties getting rJava to install on my Debian Squeeze box. Perused the R-help list and tried some things that have worked for others but not for me. Below is the output of my attempted build, R CMD javareconf -e, and sessionInfo(). Note I tried the R CMD javareconf also as root, restarted R after each of these, all no help. * Installing *source* package ?rJava? ... checking for
2008 Jan 30
1
R package Matrix failing to build with R-devel on Ubuntu AMD64
Switched back to R-devel tonight after using R-2.6.1 for awhile and when I updated my devel packages Matrix installation failed. Not critical for me but thought I should report it. I am using Ubuntu Gusty AMD64 OS. Tail of install output and sessionInfo follows. Mark Loading required package: methods Loading required package: lattice Attaching package: 'Matrix' The
2007 Sep 20
1
packages MANOR, qvalue, and tkWidgets fail install on Fedora 7 with latest R-beta build
Had some packages fail install so I updated to today's R-beta release. On updating packages the following packages still fail. sessionInfo follows. Mark Warning messages: 1: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl, : installation of package 'MANOR' had non-zero exit status 2: In install.packages(update[instlib == l,