similar to: attach 'name' argument ignored with a file?

Displaying 20 results from an estimated 10000 matches similar to: "attach 'name' argument ignored with a file?"

2011 Jan 25
3
R por consola en modo "--quiet" incluso con "--save"
Hola: ¿Como se puede evitar que cuando se ejecuta R desde consola de sistema, muestre el contenido del script de R que va a ejecutar? Ejemplo: véase script tonto adjunto (test1.r) que muestra una cadena de texto: cat("test"); Necesito ejecutarlo por consola en modo --save, pues para el caso real de uso necesito guardar los objetos de R en disco para poder usarlos posteriormente.
2008 Mar 27
4
Execute R with *.RData argument
Dear R developers, i would like to start R with a *.RData argument under Linux. Something like R -f /home/user/workspace.RData Is this possible? Thanks in advance for any answers. -- View this message in context: http://www.nabble.com/Execute-R-with-*.RData-argument-tp16323374p16323374.html Sent from the R help mailing list archive at Nabble.com.
2012 May 03
6
Cannot read or write to file in Linux Ubuntu
I am the proud owner of a new laptop since my old one died the other day. Currently I have a dual-boot Windows 7 Home and Ubuntu 12.04 . I'll leave the Windows problems for another post. I know practically nothing about Linux so I am probably doing something stupid but ... at the moment I cannot seem read or write files in Ubuntu. I am not having any problem saving other documents to the
2006 May 10
1
attach() warning message
Hi, I am using R 2.3.0 and my .First() file has the following line which causes a warning: attach(what="c:/r/jmb/.RData", pos=3) I get the following message after .First() is loaded: During startup - Warning message: use of NULL environment is deprecated Is there a simple fix that will eliminate this warning message? Thanks. J. Breiwick
2001 May 10
4
Passing a workspace file as argument
What is the best way (if possible) to pass the name of a workspace file to R when it starts so it is loaded instead of .RData ? I would like to know this for Linux and windows version. For windows I would like to associate the .RData extension so doubleclicking the file starts R and loads it. Thanks -- Victor Moreno V.Moreno at ico.scs.es Servei
2012 Feb 24
1
package relsurv
Dear R-Users, I've recently used relsurv package for relative survival analysis. In particular I've tried to reproduce the examples proposed in the R-documentation about rsadd, rsmul and rstrans functions in R latest version (R 2.14.1). These examples don't run and the error message is always the following: data(slopop) data(rdata)
2007 Feb 12
1
'Save Workspace' gives "recursive default argument reference" -- workaround?
When signing off R or trying to save a workspace in Windows XP pro SP2, I receive the following error message - save.image("C:\\Program Files\\R\\R-2.4.1\\Responses3.RData") Error in save.image("C:\\Program Files\\R\\R-2.4.1\\Responses3.RData") : recursive default argument reference Everything else seems to work fine, and the only function I have written
2007 May 16
2
'attach workspace' on R console File menu
Quite often I save misc functions and data objects as .RData files that I can use in other sessions. Although I could 'Load Workspace" these files, most of the times I prefer attaching them. It would be really convenient to have a menu item under the File menu on the Windows R Console to allow attaching workspaces, e.g. -------------------- Attach Workspace... Load Workspace... Save
2007 Sep 20
1
how can I attach a variable stored in
Hi - Any help would be greatly appreciated. I'm loading a list variable that's stored in an .RData file and would like attach it. I've used attach( <file_name> ), but that only lets me see the variable that's stored in the file. As the variable name is of the form "comp.x.x", I've tried using attach( ls( pat="comp" ) ), but get an error as ls()
1998 Nov 09
1
help with "attach"
Hello, I've been migrating my computing to R and have not had any major problems running old Splus programs in R. However, the one thing I am missing is the ability to attach directories full of general utility functions from whereever I happen to fire up an R session. As a consequence, I find myself making many duplicate copies of these little general purpose functions by cutting and
2006 May 25
1
save() saves extra stuff if object is not evaluated
Hi, it looks like save() is saving all contents of the calling environments if the object to be saved is *not* evaluated, although it is not that simple either. After many hours of troubleshooting, I'm still confused. Here is a reproducible example (also attached) with output. I let the code and the output talk for itself: peek <- function(file, from=1, to=500) {
2011 Aug 22
3
Ignoring loadNamespace errors when loading a file
On a Unix machine I ran caret::rfe using the multicore package, and I saved the resulting object using save(lm2, file = "lm2.RData"). [Reproducible example below.] When I try to load("lm2.RData") on my Windows laptop, I get Error in loadNamespace(name) : there is no package called 'multicore' I completely understand the error and I would like to ignore it and
2004 Sep 22
1
attaching to position 1
If an attempt is made to attach to position 1, it appears to work (not even a warning) but in fact it doesn't work as many would expect. "search" thinks that it gets placed in position 2, but nothing is actually there (according to "ls"). This is guaranteed to be confusing (and annoying) to people who are used to attaching to position 1 in S-PLUS. I'm not clear on
2011 Jan 25
3
Integration of two lines
Hello, I need to integrate the absolute difference between two lines measured on different points. # For example : x <- seq(0, 1, 1/100) f_x <- runif(101) + x y <- seq(0, 1, 1/23) f_y <- runif(24) + (1 - y) plot(x, f_x, type="l") lines(y, f_y) Then I would like to compute Integral( | f_x - f_y | )dx. (This is not the same as | Integral(f_x)dx - Integral(f_y)dx |.)
2011 Jun 19
1
save and load in R
I have a list of txt files that I want to convert into .rdata R data object. filenames 1. "./file1.txt" 2. "./file2.txt" 3. "./file3.txt" 4. "./file4.txt" 5. "./file5.txt" 6. "./file6.txt" 7. "./file7.txt" 8. "./file8.txt" 9. "./file9.txt" 10. "./file10.txt" I saved these files as for ( i in
2007 May 16
0
attach/detach asymmetry
Is there a good reason why arguments to 'attach' and 'detach' differ so much? Yes, I know this is the documented behaviour, it just seems to violate the principle of least surprise. Examples: file = "foo.RData" df = data.frame(x=1:10,y=1:10) attach(file) # attaches the RData file 'foo.RData' attach(df) # attaches the object df Not surprising in an
2012 Feb 29
2
How to remove an object that is loaded every time R is opened?
Dear R users, I'm a newbie and have another basic question that you guys can answer for me. So, I've been noticing that an object (data frame) called "FossilFuel" is loaded as default when I first open up the R (see below). I created this data frame a while ago which is a data set for tutorial and I don't need this any more. I'm not sure why this happens and wonder if
2005 Apr 07
2
Zipping Rdata Files
Saving Rdata files in a zip archive form can in some cases save a considerable amount of disk space. R has the zip.file.extract function to extract files from zip archives, but appears not to have any corresponding function to save in zipped form. (At least I have not been able to find anything in the help files or through searching the mail archives.) The system function can be used to call gzip
2011 Mar 28
1
problem in simple saving and loading data frames
Dear all My dataframe has > 80,000 variables which I can not everytime load into R using *.txt files (read.table option), cost me time and sometime computer decomes not responsive. So I need a way to save my dataframe in my workdirectory as such. Execuse me if the problem is too simple. I tried the following, I do not know what is wrong with it: Example data: x <- 1:10 y <- 21:30 z
2005 Feb 01
1
RData loading weirdness
I've just had an interesting thing happen to one of our students. He's using R 1.9.1 on Linux, and so I dont expect bugfixes, I'm just reporting this out of interest in case anyone else has had this happen. Starting R caused a seg fault shortly after "[Previously saved workspace restored]". Running "R --no-restore-data" worked fine so I suspected a corrupted