similar to: Running R remotely in Windows Environment? - Xemacs and ssh

Displaying 20 results from an estimated 7000 matches similar to: "Running R remotely in Windows Environment? - Xemacs and ssh"

2005 Mar 08
4
how modify object in parent.env
Hi, Is it possible to modify an object in the parent.env (as opposed to re-bind)? Here is what I tried: > x = 1:3 # try to modify the first element of x from within a new environment > local(get("x", parent.env(environment()))[1] <- NA) Error in eval(expr, envir, enclos) : Target of assignment expands to non-language object # On the other hand retrieval works just fine >
2004 May 01
5
skip lines on a connection
Hi, I am looking for an efficient way of skipping big chunks of lines on a connection (not necessarily at the beginning of the file). One way is to use read lines, e.g. readLines(1e6), but a) this incurs the overhead of construction of the return char vector and b) has a (fairly remote) potential to blow up the memory. Another way would be to use scan(), e.g. scan(con, skip=1e6, nmax=0)
2003 Sep 03
3
read.table: check.names arg - feature request
Hi, I thought it would be convenient if the check.names argument to read.table, which currently can only be TRUE/FALSE, could take a function value as well. If the function is supplied it should be used instead of the default make.names. Here is an example where it can come in handy. I tend to keep my data in coma-separated files with a header line. The header line is prefixed with a comment
2004 Dec 03
4
seq.Date requires by
Hi, What is the reason for seq.Date to require the 'by' argument and not to default it to 1 in the example below? > seq(from=as.Date("1996-01-01"), to=as.Date("1996-12-01")) Error in seq.Date(from = as.Date("1996-01-01"), to = as.Date("1996-12-01")) : exactly two of `to', `by' and `length.out' / `along.with' must be specified
2004 Jun 08
5
fast mkChar
Hi, To speed up reading of large (few million lines) CSV files I am writing custom read functions (in C). By timing various approaches I figured out that one of the bottlenecks in reading character fields is the mkChar() function which on each call incurs a lot of garbage-collection-related overhead. I wonder if there is a "vectorized" version of mkChar, say mkChar2(char **, int
2005 May 07
4
how to add method to .Primitive function
Hi, I tried to write the dim method for the list class, but R doesn't seem to dispatch to it: > dim.list = function(x) c(length(x[[1]]), length(x)) > dim(list(1)) NULL > dim.list(list(1)) [1] 1 1 What is the correct way of registering dim.list with .Primitive("dim")? Thanks, Vadim [[alternative HTML version deleted]]
2004 Nov 10
3
recursive default argument reference
Hi, It seems that a formal function argument can not default to an "outer" variable of the same name: > x <- "foo" > ff <- function(x=x) x > ff() Error in ff() : recursive default argument reference > Is this intentional? Why? I use R-1.9.1. Thanks, Vadim
2004 Feb 14
1
PLEASE IGNORE PREVIOUS: How to configure ess-5.2.0beta3-1.i586.rpm, Xemacs and SuSE 9.0?
Please ignore (and excuse) my previous message - it is incomplete. I'm trying to get R and ESS to work with Xemacs on a newly installed SuSE 9.0 system. Is some setup required beyond installing the rpms? I've installed the Xemacs packages from SuSE xemacs-info-21.4.13-35 xemacs-packages-el-20030629-37 xemacs-21.4.13-35 xemacs-el-21.4.13-35 xemacs-packages-info-20030629-37
2004 Feb 14
1
How to configure ess-5.2.0beta3-1.i586.rpm, Xemacs and SuSE 9.0?
I'm trying to get R and ESS to work with Xemacs on a newly installed SuSE 9.0 system. Is some setup required beyond installing the rpms? I've installed the Xemacs packages from SuSE xemacs-info-21.4.13-35 xemacs-packages-el-20030629-37 xemacs-21.4.13-35 xemacs-el-21.4.13-35 xemacs-packages-info-20030629-37 xemacs-packages-20030629-37 ess-5.2.0beta3-1.i586.rpm
2004 Mar 02
3
error() and C++ destructors
Hi, I am writing C++ functions that are to be called via .Call() interface. I'd been using error() (from R.h) to return to R if there is an error, but then I realized that this might be not safe as supposedly error() doesn't throw an exception and therefore some destructors do not get called and some memory may leak. Here is a simple example extern "C" void foo() { string
2004 Feb 26
2
Sweave and Xemacs on Windows2000?
Hallo! Trying to configure Xemacs to work with .snw files on windows 2000. Tried to do it how it is described in the FAQ for Sweaves. When starting xemacs with and Snw file *ESS* buffer contains hundrets of lines and the few last ones. (ess-loop-timeout . 500000) (inferior-ess-primary-prompt . ^) (inferior-ess-secondary-prompt . ^) (comint-use-prompt-regexp-instead-of-fields . t)
2004 Jun 30
2
Slow IO: was [R] naive question
I believe IO in R is slow because of the way it is implemented, not because it has to do some extra work for the user. I compared scan() with 'what' argument set (which is, AFAIK, is the fastest way to read a CSV file) to an equivalent C code. It turned out to be 20 - 50 times slower. I can see at least two main reasons why R's IO is so slow (I didn't profile this though): A) it
2001 Dec 26
1
ESS 5.1.19 w/Xemacs 21.4.6
Probably wrong group for this, but a quick question. I've just switched from emacs to Xemacs. In reinstalling ESS 5.1.19 I keep getting the following error when loading Xemacs: "Error in init file: Symbol's function definition is void: w32-using-nt" I've debugged the ess-site.el file, which is where the error originates from. The line causing the difficulty is:
2004 Aug 30
1
initialization error with XEmacs init.el file
I have successfully used XEmacs on my home PC for several months. On 8/25/04 I downloaded R version 1.9.1 (rw1091) from one of the R mirror sites, XEmacs installer (setup.exe) from <http://www.xemacs.org/Download/win32/>, and Jim Fox's latest configuration files (fox-ess-config.zip) from <http://socserv.socsci.mcmaster.ca/jfox/Books/Companion/ESS/> to my Dell laptop, which is
2004 Nov 19
3
how to get to interesting part of pattern match
Hi, I am looking for a way to extract an "interesting" part of the match to a regular expression. For example the pattern "[./](*.)" matches a substring that begins with either "." or "/" followed by anything. I am interested in this "anything" w/o the "." or "/" prefix. If say I match the pattern against "abc/foo" I
2003 Apr 01
1
[OFF]- Xemacs, delete key and ESS
Hi, I use R with XEmacs and ESS, when I'm editing a R file in XEmacs, the delete key work like the Backspace key. This behaviour is only in XEmacs + ESS + R file, it dont have this behaviour on a R section (M+R). Anybody know how to make a delete key to work like the delete key?? ESS 5.1.20-2 XEmacs 21.4.6-8 Thanks for all -- You will always have good luck in your personal affairs. --
2004 Apr 23
3
time zones in POSIXt
Hi, I have two data sources. One records time in PST time zone, the other in GMT. I want to compute the difference between the two, but don't see how. Here is an example where I compute time difference between identical times each (meant to be) relative to its time zone. > as.POSIXlt("2000-05-10 10:15:00", "PST") - as.POSIXlt("2000-05-10 10:15:00",
2004 Nov 26
2
Lightweight data frame class
Hi, As far as I can tell data.frame class adds two features to those of lists: * matrix structure via [,] and [,]<- operators (well, I know these are actually "["(i, j, ...), not "[,]"). * row names attribute. It seems that the overhead of the support for the row names, both computational and RAM-wise, is rather non-trivial. I frequently subscript from a data.frame,
2005 Jun 10
1
Redirect console to file
Hi, Is it possible to redirect the staff that normally goes to the R console window into a file. sink() does this for sdterr and stdout. But I need something that redirects "everything" that appear in the console window (including the top-level commands). I want to achieve the same effect as that of the following command under sh: R < foo.R &> foo.Rt only I want the
2008 May 03
1
ESS and Xemacs version 21.5.28
Hi, When I start Xemacs version 21.5.28 (in Unix), using the init.el: (setq bell-volume 0) (setq sound-alist nil) (setq grep-find-use-xargs nil) (require 'ess-site) I get the following error: (1) (initialization/error) An error has occurred while loading $home/.xemacs/init.el: Cannot open load file: "ess-site" Backtrace follows: signal(file-error ("Cannot open