similar to: detach()

Displaying 20 results from an estimated 30000 matches similar to: "detach()"

2008 Aug 07
3
how to save an R object selectively?
Hi, How to save an R object for example a matrix or vector and not all objects created in a session (which is usually performed by save.image or q("yes"))? Best, Carol [[alternative HTML version deleted]]
2004 Dec 04
9
Excel *.xls files, RODBC
I gather from reading the back-issues of r-help that it should be possible (modulo a number of caveats) to read an excel (yuck!) file into R using RODBC. I have obtained and installed ODBC and the RODBC package, but cannot for the life of me figure out how to go about it. Can anyone give me a simple recipe? I have an excel file on cdrom, say: /mnt/cdrom/melvin.xls I have started R and loaded
2005 Jun 10
1
Exiting R and package detachment?
Hi, is there away to assure that a package is detached when R quits? I know about .Last(), but that requires the user to setup that function. What I am looking for is a way for the package to do this itself, without asking the user to edit "their" .Last(). From ?setHook I know that: "...when an R is finished, packages are not detached and namespaces are not unloaded, so
2002 Apr 11
2
Obtaining names of ``...'' arguments.
This may be an FAQ, but a (perfunctory) search failed to turn it up. Suppose I have a function foo(...){<something>} and I want to obtain, inside foo, the names of items comprising the ``...''. E.g. if I call foo(melvin,clyde,irving) I want to be able to loop through the ``...'' and successively obtain the text strings "melvin", "clyde", and
2007 Feb 19
1
Documenting options specific to a package.
If one specifies new options in a package, using the options() function, where does/should one document these new options? E.g. suppose that I put the line options(melvin=42) in a file zzz.R in the R directory of the package source, where the package contains functions foo(), bar(), clyde(), and irving() which all query options("melvin") and take some action based on the value of
2001 Dec 20
2
library()
I've just installed version 1.4.0 of R, and am experiencing a puzzling phenomenon with the library() function. I have .lib.loc set as follows: > .lib.loc [1] "/usr/local/lib/R/library" "/home/faculty/rolf/Rlib" If I invoke > library(melvin) I get the error message Error in library(melvin) : There is no package called `melvin' but if I invoke >
2006 Apr 13
4
Creating an environment for a function.
I am trying to build a function in a context where the environment concept would appear to be useful. But I'm a bit foggy about this concept and would appreciate some pointers and advice. Basically the function I'm building, say foo(x,t), is a function of two variables). Depending on the value of t, foo will return one of the values f1(x), f2(x), ..., fk(x), where each of f1, ..., fk is
2004 Sep 15
2
Slightly off-topic --- distribution name.
I've built R functions to ``effect'' a particular distribution, and would like to find out if that distribution is already ``known'' by an existing name. (I.e. suppose it were called the ``Melvin'' distribution --- I've built dmelvin, pmelvin, qmelvin, and rmelvin as it were, but I need a real name to substitute for melvin.) The distribution is really just a toy
2003 Apr 21
4
help.start in R-1.7.0 with Netscape 7.0.
I'm experiencing a new and annoying phenomenon which seems to consist of an unfortunate interaction between R-1.7.0 and netscape version 7. When I invoke help.start(), a netscape window duly appears with the browser pointed at the file .../R/doc/html/index.html as one would hope and expect. However if I then ask for help on a function, e.g. > help(glm) the help does NOT get displayed
2002 Aug 17
1
Peculiar behavior of attached objects
I've just discovered R and think it is terrific. I quickly reproduced results with a few lines of R commands that 7 years ago I had to do with a larger fortran code and many calls to NAG routines. (I'm mostly a computational plasma physicist, but occasionally delve into statistical analysis of data.) But I've come accross a very peculiar behavior of attached objects that cost me
2002 Apr 04
1
PR#1132.
Just now I again had occasion to want nested describe lists in a documentation file. I found that the bug which I reported on 18 October, 2001 still persists. I checked on the bug report at the R web page, and found that the notes say ``Not a problem in R 1.4.0 (2001-12-08)''. Well, it's still a problem for me --- using R 1.4.1. (Details: platform sparc-sun-solaris2.7 arch
2004 Aug 03
3
keep.source.pkgs()
Recently Brian Ripley had occasion to mock my inability to see a comment in the code for arima(), in the stats package. After considerable dredging around in the r-news archives I found reference to keep.source() and keep.source.pkgs(), which I conjectured just ***might*** possibly be the ``obvious'' resource to which Prof. Ripley thought I ought to have resorted. However, after
2002 Jan 17
1
detach(package:base) kills R (PR#1271)
Full_Name: David Heffernan Version: 1.3.1 OS: Windows & Linux Submission from: (NULL) (158.152.160.7) The command detach(package:base) kills R with segmentation fault on Linux and an access violation on Windows. I guess the same will happen on any platform. Obviously this is a not a sensible command to execute but you could easily do it by accident particularly if using the pos parameter
2005 Jan 21
4
which.pmin?
I have two vectors (k.floor and k.ceiling) of integers of the same length, and a function (fpr). b <- 10:40 k.floor <- floor(log(2) * b) k.ceiling <- ceiling(log(2) * b) fpr.floor <- fpr(b, k.floor) fpr.ceiling <- fpr(b, k.ceiling) If R had a element-wise ternary function, I'd like to do something like this: (fpr.floor < fpr.ceiling) ? k.floor :
2019 Nov 04
3
Puzzled about a new method for "[".
On 04/11/2019 4:40 p.m., Pages, Herve wrote: > Hi Rolf, > > On 11/4/19 12:28, Rolf Turner wrote: >> >> On 5/11/19 3:41 AM, Hadley Wickham wrote: >> >>> For what it's worth, I don't think this strategy can work in general, >>> because a class might have attributes that depend on its data/contents >>> (e.g. >>>
2012 Nov 08
3
problem with package development and older defs earlier in search order
Hi, I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv? fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this somehow when I load the package. I do not want to mess up the search order to fix the problem. How I got myself into this mess is that I started
2017 Sep 04
1
[virtual interface] detach interface during boot succeed with no changes
Hi guys, when I detach an interface from vm during boot (vm boot not finished), it always fail. I'm not sure if there is an existing bug. I have confirmed with someone that for disk, there is similar behavior, if this is also acceptable? # virsh destroy rhel7.2; virsh start rhel7.2 ;sleep 2; virsh detach-interface rhel7.2 network 52:54:00:98:c4:a0; sleep 2; virsh dumpxml rhel7.2 |grep
2019 Nov 04
3
Puzzled about a new method for "[".
On 5/11/19 3:41 AM, Hadley Wickham wrote: > For what it's worth, I don't think this strategy can work in general, > because a class might have attributes that depend on its data/contents > (e.g. https://vctrs.r-lib.org/articles/s3-vector.html#cached-sum). I > don't think these are particularly common in practice, but it's > dangerous to assume that you can restore a
2004 Jan 20
3
Changing workspace from within an R session
Hello R-users, is it possible to navigate from one workspace to the other from within an R session or does one has to close R and restart it from the directory where resides the desired workspace? For example from Splus I have this little function, see at the end, which I used all the time to navigate between valid Splus directories. I find this particularly usefull when I develop new
2004 Jul 12
1
Nested source()s
I had an error message while running a macro from Yudi Pawitan's web site: > source("ex2-13.r") Error in parse(file, n, text, prompt) : syntax error on line 2 Inspecting ex2-13.r I found that the error was generated by another source() command. Clearly R does not like nested source()s, which is fair enough when you think about it. Still it's something that you might want