search for: unloadnamespac

Displaying 20 results from an estimated 43 matches for "unloadnamespac".

Did you mean: unloadnamespace
2004 Aug 23
1
Installing R on DEC Alpha - problems with dynamic loading
...246839:/data/h1/bifdev/apps/wga/R-1.9.1/bin/R.bin: /sbin/loader: Fatal Error: call to unresolved symbol from /data/h1/bifdev/apps/wga/R-1.9.1/modules/lapack.so (pc=0x3ffbfe22b60) Further investigation has revealed that there is NO problem with lapack.so. The problem seems to lie in the use of 'unloadNamespace' earlier in the script. On our machine the following line: unloadNamespace(splines) seem to really confuse the dynamic linking/symbol resolution. I have a very small example to demonstrate: data(iris) library(splines) unloadNamespace(splines) data(iris) works fine, but: library(spl...
2004 Aug 23
1
Installing R on DEC Alpha - problems with dynamic loading
...246839:/data/h1/bifdev/apps/wga/R-1.9.1/bin/R.bin: /sbin/loader: Fatal Error: call to unresolved symbol from /data/h1/bifdev/apps/wga/R-1.9.1/modules/lapack.so (pc=0x3ffbfe22b60) Further investigation has revealed that there is NO problem with lapack.so. The problem seems to lie in the use of 'unloadNamespace' earlier in the script. On our machine the following line: unloadNamespace(splines) seem to really confuse the dynamic linking/symbol resolution. I have a very small example to demonstrate: data(iris) library(splines) unloadNamespace(splines) data(iris) works fine, but: library(spl...
2013 Oct 29
1
unloadNamespace, getPackageName and "Created a package name xxx " warning
Dear all, Consider this code: >library("data.table") >unloadNamespace('data.table') It produces some warnings Warning in FUN(X[[1L]], ...) : Created a package name, ‘2013-10-29 17:05:51’, when none found Warning in FUN(X[[1L]], ...) : Created a package name, ‘2013-10-29 17:05:51’, when none found ... The warning is produced by the getPackageName() func...
2015 Dec 22
0
unloadNamespace() does not address unevaluated promises in the S3 Methods Table
...e extremely simple package at https://github.com/jimhester/testUnload, which includes only one S3 method 'print.object' the following code produces a lazy load error from a new R session (R-devel r69801) install.packages("testUnload", repos = NULL) library("testUnload") unloadNamespace("testUnload") install.packages("testUnload", repos = NULL) library("testUnload") #> Error in get(method, envir = home) : #> lazy-load database '{sic}/testUnload/R/testUnload.rdb' is corrupt #> In addition: Warning message: #> In get(method, envir...
2015 Jan 08
4
unloadNamespace
...elopment (unstable) (2015-01-02 r67308) -- "Unsuffered Consequences" ... Type 'q()' to quit R. > loadedNamespaces() [1] "base" "datasets" "graphics" "grDevices" "methods" "stats" [7] "utils" > unloadNamespace("tseries") # loads zoo ? > loadedNamespaces() [1] "base" "datasets" "graphics" "grDevices" "grid" "lattice" [7] "methods" "quadprog" "stats" "utils" "zoo&qu...
2015 Jan 09
0
unloadNamespace
It's probably because the first thing that unloadNamespace does is this: ns <- asNamespace(ns, base.OK = FALSE) If you call asNamespace("tseries"), it calls getNamespace("tseries"), which has the side effect of loading that package (and its dependencies). One way to work around this is to check loadedNamespaces() before you try...
2012 Jan 27
2
Unable to reload Rdoc
...ader + roxygenize); then R CMD BUILD, R CMD INSTALL then in the same R session, reload the library & lookup a man page, I always get this error: Error in fetch(key) : internal error -3 in R_decompress1 I've tried all ways of reloading the package that i'm aware of: detach then library unloadNamespace then library devtools::install devtools::reload all lead to the error. I see from ?detach: ... So detaching and re-attaching a package may not refresh some or all components of the package, and is inadvisable. restarting the R session results in loading the updated man file, but do you have any...
2010 Sep 16
1
Possible bug or annoyance with library.dynam.unload()
...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, lib.loc=".Rcheck") >unloadNamespace("Foo") Warning message: .onUnload failed in unloadNamespace() for 'Foo', details: call: library.dynam.unload("Foo", libpath) error: shared library 'Foo' was not loaded # I traced it a little: >library.dynam.unload("Foo", ".Rcheck/Foo"...
2016 May 06
2
Is it possible to increase MAX_NUM_DLLS in future R releases?
...sis 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 detach/unloadNamespace function does not unload the DLLs, or in the case of the "SCDE" package, not all dependent DLLs: > length(getLoadedDLLs()) [1] 9 > requireNamespace("scde") Loading required namespace: scde > length(getLoadedDLLs()) [1] 34 > unloadNamespace("scde") now dyn...
2012 Dec 31
3
weird bug with parallel, RSQlite and tcltk
...parallel::mclappy, but I got it doMC/multicore too), if the library(tcltk) is loaded, R hangs when trying to open a DB connection. I got the same behaviour on two different computers, one dual-core, and one 2 xeon quad-core. Here's the code: library(parallel) library(RSQLite) library(tcltk) #unloadNamespace("tcltk") res <- mclapply(1:2, function(x) { db <- DBI::dbConnect("SQLite", ":memory:") }, mc.cores=2) print("Done") When I execute it (R --vanilla < test_parallel_db.R), it hangs forever, and I have to type several times CTRL+C to interrupt it....
2013 Dec 19
2
Strange warnings when unloading packages with S4 classes
I've been seeing warnings when unloading packages. They can be seen with the shiny and sp packages, among others (this is on R 3.0.2). For example: > library(sp) > unloadNamespace('sp') Warning messages: 1: In FUN(X[[2L]], ...) : Created a package name, ‘2013-12-19 12:14:24’, when none found 2: In FUN(X[[2L]], ...) : Created a package name, ‘2013-12-19 12:14:24’, when none found 3: In FUN(X[[2L]], ...) : Created a package name, ‘2013-12-19 12:14:24’, when none...
2009 Jul 13
3
SweaveListingUtils question
...main = 'Back to Back Histogram') #! just adding color barplot(-out$left, col="red" , horiz=TRUE, space=0, add=TRUE, axes=FALSE) barplot(out$right, col="blue", horiz=TRUE, space=0, add=TRUE, axes=FALSE) \end{lstlisting} \end{frame} \begin{Scode}{echo=FALSE} unloadNamespace("SweaveListingUtils") \end{Scode} \end{document} %%%%% end example [[alternative HTML version deleted]]
2018 Feb 02
2
Updating Rcpp package when it is claimed by dplyr
When i tried to install the hunspell package, I got this error message: Error: package ?Rcpp? 0.12.3 was found, but >= 0.12.12 is required by ?hunspell? So I set about installing a new version of Rcpp but I get this message: Error in unloadNamespace(pkg_name) : namespace ?Rcpp? is imported by ?dplyr? so cannot be unloaded How does one get around that? I tried installing Rcpp in a vanilla session but the result was the same. TIA Patrick > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-pc-linux-gnu (64-bit) Running under...
2009 Dec 14
0
R 2.10.1 is released
...extremely long strings (hundreds of thousands of characters) due to integer overflow in a length calculation. o abline(*, untf=TRUE) now uses a better x-grid in log-scale, e.g., for plot(c(1,300), c(1,300), log="xy") ; abline(4,1, untf=TRUE). o detach/unloadNamespace() arrange to flush the package's lazyload cache of R objects once the package/namespace is no longer needed. o There have been small fixes to the rendering of help, e.g. \command is now rendered verbatim (so e.g. -- is not interpreted, PR#14045)....
2009 Dec 14
0
R 2.10.1 is released
...extremely long strings (hundreds of thousands of characters) due to integer overflow in a length calculation. o abline(*, untf=TRUE) now uses a better x-grid in log-scale, e.g., for plot(c(1,300), c(1,300), log="xy") ; abline(4,1, untf=TRUE). o detach/unloadNamespace() arrange to flush the package's lazyload cache of R objects once the package/namespace is no longer needed. o There have been small fixes to the rendering of help, e.g. \command is now rendered verbatim (so e.g. -- is not interpreted, PR#14045)....
2018 Feb 02
2
Updating Rcpp package when it is claimed by dplyr
...to install the hunspell package, I got this error >> message: >> >> Error: package ?Rcpp? 0.12.3 was found, but >= 0.12.12 is required by >> ?hunspell? >> >> So I set about installing a new version of Rcpp but I get this message: >> >> Error in unloadNamespace(pkg_name) : >> namespace ?Rcpp? is imported by ?dplyr? so cannot be unloaded >> >> How does one get around that? I tried installing Rcpp in a vanilla >> session but the result was the same. >> >> TIA >> Patrick >> >> >>> sessionI...
2018 Feb 02
0
Updating Rcpp package when it is claimed by dplyr
...gshot.co.nz> wrote: >When i tried to install the hunspell package, I got this error >message: > >Error: package ?Rcpp? 0.12.3 was found, but >= 0.12.12 is required by >?hunspell? > >So I set about installing a new version of Rcpp but I get this message: > >Error in unloadNamespace(pkg_name) : > namespace ?Rcpp? is imported by ?dplyr? so cannot be unloaded > >How does one get around that? I tried installing Rcpp in a vanilla >session but the result was the same. > >TIA >Patrick > > >> sessionInfo() >R version 3.4.3 (2017-11-30) >Plat...
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]
2016 May 10
0
Is it possible to increase MAX_NUM_DLLS in future R releases?
...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 detach/unloadNamespace function does not unload the DLLs, or in the case of the "SCDE" package, not all dependent DLLs: >> length(getLoadedDLLs()) > [1] 9 >> requireNamespace("scde") > Loading required namespace: scde >> length(getLoadedDLLs()) > [1...
2018 Feb 02
0
Updating Rcpp package when it is claimed by dplyr
...or |> >> message: |> >> |> >> Error: package ?Rcpp? 0.12.3 was found, but >= 0.12.12 is required by |> >> ?hunspell? |> >> |> >> So I set about installing a new version of Rcpp but I get this message: |> >> |> >> Error in unloadNamespace(pkg_name) : |> >> namespace ?Rcpp? is imported by ?dplyr? so cannot be unloaded |> >> |> >> How does one get around that? I tried installing Rcpp in a vanilla |> >> session but the result was the same. |> >> |> >> TIA |> >> Patrick...