Displaying 20 results from an estimated 11000 matches similar to: "Auto-upgrading a package under Windows ?"
2010 Sep 16
1
Possible bug or annoyance with library.dynam.unload()
Hello,
I have a package with a namespace. Because I use Roxygen that overwrites the
NAMESPACE file each time it is run, I use a R/zzz.R file with
an .onLoad() and .onUnload() functions to take care of loading and unloading
my shared library.
The problem: if I load my library from a local directory, then the unloading
of the package fails, e.g:
# loads fine
>library(Foo,
2006 Feb 08
2
Using .onUnload() to unload compiled code
If one wants to unload compiled code for a package containing a namespace, my understanding is that .onUnload() should be used, with a call to library.dynam.unload(). This is used in e.g., the stats and methods packages, but it appears to me that the compiled code is not being unloaded when the package is detached(). Am I misunderstanding something?
Best,
Jim
> search()
[1]
2010 Nov 12
1
unloading compiled code.
I have a package that I'm developing that I need to unload the
library. Long story short I figured out that the leaving the compiled
code loaded lead to a segmentation fault, but unloading the code will
fix it. I've read the documentation and it appears that there are
several ways to do this? What is the popper accepted current standard
for unloading compiled code?
The options as I
2013 Nov 06
1
How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit
Hi,
it seems that the package hooks .onLoad and its C++ pendant
R_unload_mylib are actually not called when R quits, but only when
explicitly calling detach('package:mylib', unload = TRUE).
Maybe this is platform specific, I'm on Ubuntu 13.10 - R 3.0.2 (see below).
* is there a mechanism that a package can use to effectively do some
cleanup on standard exit, such as calling
2012 Jul 24
1
Using .onUnload to unload DLLs
I've noticed that many of the "base" R packages have an .onUnload()
function which automatically unloads compiled shared libraries
with library.dynam.unload(). For example:
> stats:::.onUnload
function (libpath)
library.dynam.unload("stats", libpath)
<bytecode: 0x1033b9c30>
<environment: namespace:stats>
I've noticed that many other packages don't
2016 Mar 25
1
library.dynam.unload
The survival package has a firstlib.R file that I had forgotton and just reviewed. After
deleting several bits which had a use 10 years ago during my Splus to R transition, the
only thing remaining is
.onUnload <- function(libpath)
library.dynam.unload("survival", libpath)
Does this bit of code still serve a purpose? Can I toss it?
Terry T.
2009 Jun 05
1
Antialiasing plots and text on different devices
I have a question about antialiasing when R generates bitmaps. (This follows
a thread on the ggplot2 mailing list.)
I mostly use R on Linux, although I sometimes use it in Mac and Windows as
well. On Linux, I've found that plotting shapes 15-18 via cairo results in
bad-looking output. The points are not antialiased, and they are jagged and
misshapen. Plots generated in Windows also aren't
2007 Jan 16
2
on.exit called on loading ?
I just found out that an .onLoad() function such as this stylized one (where
I just renamed some identifiers)
.onLoad <- function(lib, pkg) {
require(zoo, quiet=TRUE, warn.conflicts=FALSE)
library.dynam("foolib", pkg, lib )
if (.Platform$OS.type != "windows") {
initSomeServices()
}
if (.Platform$OS.type != "windows") {
2005 Dec 01
1
Snow & rvpm
At office, using the internal LAN at my disposal, I'm having a go at parallel
computing - to begin with - with pvm, rpvm & snow.
The two boxes are as follows
Remote machine uffbsd:
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (1994.13-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf24 Stepping = 4
real memory = 260046848 (248 MB)
This machine NbBSD:
CPU: Mobile Intel(R)
2007 Jul 03
2
reinforce library to re-load
Hi,
I am wondering if there is a parameter in library() so that it can
reinforce package to be reloaded. It helps when you test your modified
package by yourself. Otherwise, my way is to re-start Rgui.
(by reading ?library, I understand this option is not implemented)
"...Both functions check and update the list of currently loaded
packages and do not reload a package which is already
2007 Jul 03
2
reinforce library to re-load
Hi,
I am wondering if there is a parameter in library() so that it can
reinforce package to be reloaded. It helps when you test your modified
package by yourself. Otherwise, my way is to re-start Rgui.
(by reading ?library, I understand this option is not implemented)
"...Both functions check and update the list of currently loaded
packages and do not reload a package which is already
2004 Apr 28
2
Rtemp directories accumulating over time
Hola!
There is a nuisance that the number of directories with name starting
Rtmp (and always empty) in my temp directory is increasing over time.
I put the following in my .Rprofile:
tmp0001 <- tempdir()
setHook( packageEvent("base","onUnload"),
function(...) unlink( tmp0001, recursive=TRUE) )
which solves part of the problem, but not all. So there are also
2008 Oct 10
2
Fatal error: unable to restore saved data in .RData
Hello,
I am unable to start an R session by double-clicking on an existing
.RData file from the Windoze file explorer.
A dialogue appears with the message
"Fatal error: unable to restore saved data in .RData",
and I notice in the R Console the last few lines are:
"Loading required package: R2HTML
NULL
error in function () : unused argument(s) (1:43)"
I tried starting
2016 May 06
2
Is it possible to increase MAX_NUM_DLLS in future R releases?
Thanks for all your great answers.
The app I?m working on is indeed an exploratory data analysis tool for gene expression, which requires a bunch of bioconductor packages.
I guess for now, my best solution is to divide my app into modules and load/unload packages as the user switch from one module to another.
This brought me another question: it seems that unload package with the
2017 May 28
1
Rounding in print.summaryDefault()
Might this be related to the Linux version? I'm testing on one of our
university servers, and they tend to be deprived of regular updates
sometimes... (Dirk, sorry for sending you this twice.)
> Sys.info()
sysname
"Linux"
release
2003 Sep 16
2
/tftpboot file locations
Has anyone had any luck with moving files outside of /tftpboot? Its been
particularly frustrating in my environment to support files within this
directory. Especially since I support three different architectures and
need to differentiate their boot loaders, kernels, configs, initrd's,
etc. I'd really like to symlink off to my AFS space and let the sysname
values do the work.
Is there a
2013 Oct 19
3
Suggestions for an "official" place to store permissions/options for a package?
R-developers:
Duncan Murdoch suggested I move a post I started on r-help over here,
since it is more at the developer level. Here is my
question/challenge -- to my knowledge, there is not currently an
official way to store a *package*'s options to a standardized location
on a user's computer. Given that OS-level programs have standard
preference locations, I was hoping to first assess:
2008 Apr 24
4
Scriptaculous Help (page exit effects)
I was wondering if it was possible in Prototype/Scriptaculous to run
an effect when a link is clicked, then go to that page, or if it was
possible to have an effect run when the page unloads.
I have tried <body onunload="new Effect.Fade("whatever");> and some
prototype page exit events, could get a alert("") function to work,
but not the effects. Any ideas?
2017 Jun 03
3
Building from source on an ARM71 based router
No, sorry, it's actually failing on "configure" which this script calls. I
should have been more clear.
./configured is failing at step: *Checking uname sysname type*
It's obviously missing some app/header/library, but reading through all the
breakpoints listed in the error (re-pasted below) I can't make out from the
code what it's looking for, and the config.log
2008 Mar 17
1
asterisk.conf uniquename or sysname for uniqueid field in CDR
I set uniquename = MYHOST in asterisk.conf (under
[options]) so that my uniqueid data shows up as
MYHOST.time.seq.
First of all, I would like to know if uniquename (or
sysname?) will still be valid across future * versions
(mainly 1.6).
Secondly, is there a way to specify uniquename as an
asterisk option at the command line? (asterisk -h
doesn't show me anything regarding this feature)