similar to: unloadNamespace

Displaying 20 results from an estimated 2000 matches similar to: "unloadNamespace"

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 to unload a package. -Winston On
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
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() function. e.g.
2007 Mar 26
4
a very small query
Hi All what is the command to give me the listing of the loaded packages. I mean which are active and not the listing of all the installed packages as given by library() thanks in advance -gaurav ============================================================================================ DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}
2015 Jan 26
2
speedbump in library
>>>>> Michael Lawrence <lawrence.michael at gene.com> >>>>> on Mon, 26 Jan 2015 05:12:55 -0800 writes: > A isNamespaceLoaded() function would be a useful thing to > have in general if we are interested in readable code. An > efficient implementation would be just a bonus. Good point (readability), and thank you for the support! Note
2015 Jan 26
2
speedbump in library
>>>>> Winston Chang <winstonchang1 at gmail.com> >>>>> on Fri, 23 Jan 2015 10:15:53 -0600 writes: > I think you can simplify a little by replacing this: > pkg %in% loadedNamespaces() > with this: > .getNamespace(pkg) almost: It would be !is.null(.getNamespace(pkg)) > Whereas getNamespace(pkg) will load the
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]
2023 May 31
1
error in arfima...
dear members, I am using arfima() from forecast package to model a time series. The following is the code: > LYGH[[202]] [1] 45.40 3.25 6.50 2.15 > arfima(LYGH[[202]]) Error in .fdcov(x, fdf$d, h, nar = nar, nma = nma, hess = hess, fdf.work = fdf$w) : NA/NaN/Inf in foreign function call (arg 5) I tried viewing .fdcov() with the following code:
2016 May 04
2
Is it possible to increase MAX_NUM_DLLS in future R releases?
On 04/05/2016 08:44, Martin Maechler wrote: >>>>>> Qin Zhu <qinzhu at outlook.com> >>>>>> on Mon, 2 May 2016 16:19:44 -0400 writes: > > > Hi, > > I?m working on a Shiny app for statistical analysis. I ran into this "maximal number of DLLs reached" issue recently because my app requires importing many other packages.
2020 Oct 16
2
tools::package_dependencies problems
Hello, All: tools::package_dependencies('Ecfun') failed to find how my development version of Ecfun was using rJava, which generated errors in "R CMD build Ecfun". This is because package_dependencies by default uses CRAN and ignores locally installed packages. What do you think about having this function check both locally installed and CRAN versions? It can
2015 Jan 25
1
R CMD check message: "The following files should probably not be installed"
I am doing [R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet?; Platform: x86_64-apple-darwin10.8.0 (64-bit)] > R CMD build DAAGviz > R CMD check DAAGviz_1.0.3.tar.gz Without a .Rinstignore file, I get: <<< The following files should probably not be installed: ?figs10.pdf?, ?figs11.pdf?, ?figs12.pdf?, ?figs13.pdf?, ?figs14.pdf?, ?figs5.pdf?, ?figs6.pdf?, ?figs9.pdf?
2023 Jun 01
1
error in arfima...
>>>>> akshay kulkarni >>>>> on Wed, 31 May 2023 20:55:33 +0000 writes: > dear members, > I am using arfima() from forecast package to model a time > series. The following is the code: >> LYGH[[202]] > [1] 45.40 3.25 6.50 2.15 >> arfima(LYGH[[202]]) > Error in .fdcov(x, fdf$d, h, nar = nar, nma = nma,
2015 Dec 22
0
unloadNamespace() does not address unevaluated promises in the S3 Methods Table
Given the 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 =
2006 Aug 25
5
Quickie : unload library
Dear list, I know it must be obvious and I did my homework. (In fact I've RSiteSearched with keyword "remove AND library" but got timed out.(why?)....) How do I unload a library? I don't mean getting ride of it permanently but just to unload it for the time being. A related problem : I have some libraries loaded at startup in .First() which I have in .Rprofile. Now, I exited R
2015 Jul 07
3
List S3 methods and defining packages
Hi, from the man page ?methods, I expected to be able to build pairs (class,package) for a given S3 method, e.g., print, using attr(methods(print), 'info'). However all the methods, except the ones defined in base or S4 methods, get the 'from' value "registered S3method for print", instead of the actual package name (see below for the first rows). Is this normal
2004 Aug 23
1
Installing R on DEC Alpha - problems with dynamic loading
I have recently installed R on DEC Alpha OSF 5.1. The first regression test (reg-test-1.R) failed with an unresolved symbol in lapack.so: 2246839:/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
2004 Aug 23
1
Installing R on DEC Alpha - problems with dynamic loading
I have recently installed R on DEC Alpha OSF 5.1. The first regression test (reg-test-1.R) failed with an unresolved symbol in lapack.so: 2246839:/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
2019 Jul 07
2
Curl4, Quantmod, tseries and forecast
Dear All, I have just upgraded to Debian stable 10 and rebuilt most of the R packages. I use the R backported packages from here https://cran.r-project.org/bin/linux/debian/#debian-buster-testing for the core system. I encounter some issues when updating quantmod, tseries and forecast. For instance, see the following > install.packages("tseries") which finally fails with the
2019 Jul 07
2
Curl4, Quantmod, tseries and forecast
Dear All, I have just upgraded to Debian stable 10 and rebuilt most of the R packages. I use the R backported packages from here https://cran.r-project.org/bin/linux/debian/#debian-buster-testing for the core system. I encounter some issues when updating quantmod, tseries and forecast. For instance, see the following > install.packages("tseries") which finally fails with the
2015 Feb 27
2
The Environment variables settings in bin/R, why do they ignore environment variables of the same name?
Hello, In installation/R/bin/R i notice 1. R_HOME_DIR is hard coded e.g. R_HOME_DIR=/usr/local/lib64/R 2. It ignores R_HOME_DIR echo "WARNING: ignoring environment value of R_HOME" 3. R_SHARE_DIR, R_INCLUDE_DIR and R_DOC_DIR are also hard coded. Is there a reason why these settings do not read the values from the environment variables of the same name (assuming they exist) and