search for: unexport

Displaying 20 results from an estimated 129 matches for "unexport".

2013 Jan 16
1
Declaring/importing non-exported functions [car] in another package
...ects 'car:::df.terms', 'car:::df.terms.default', 'car:::is.aliased' are not exported by 'namespace:car' ERROR: lazy loading failed for package 'heplots' \S 1.6.1 of the manual says regarding importFrom(): Using |foo:::f| instead of |foo::f| allows access to unexported objects. This is generally not recommended, as the semantics of unexported objects may be changed by the package author in routine maintenance. Questions: 1. Why doesn't this work? 2. Is my only alternative to copy these functions to my package, also unexported? thx, -Michael -- Mich...
2019 Oct 09
0
[PATCH] drm/nouveau/falcon: make unexported objects static
Make the msgqueue_0148cdec_acr_func and msgqueue_0148cdec_func static to avoid the following sparse warnings: drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c:230:1: warning: symbol 'msgqueue_0148cdec_acr_func' was not declared. Should it be static? drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c:241:1: warning: symbol 'msgqueue_0148cdec_func' was not declared.
2020 Apr 14
0
[PATCH v2 33/33] iommu: Unexport iommu_group_get_for_dev()
From: Joerg Roedel <jroedel at suse.de> The function is now only used in IOMMU core code and shouldn't be used outside of it anyway, so remove the export for it. Signed-off-by: Joerg Roedel <jroedel at suse.de> --- drivers/iommu/iommu.c | 4 ++-- include/linux/iommu.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/iommu.c
2023 May 18
0
[PATCH 4/4] swiotlb: unexport is_swiotlb_active
Drivers have no business looking at dma-mapping or swiotlb internals. Signed-off-by: Christoph Hellwig <hch at lst.de> --- kernel/dma/swiotlb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index af2e304c672c43..9f1fd28264a067 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -921,7 +921,6 @@ bool is_swiotlb_active(struct
2004 Jul 07
1
NAMESPACE and tests for unexported functions
How do you get around the problem of having tests for functions that are not exported in NAMESPACE? It seems rather self-defeating to have to export everything so that 'R CMD CHECK pkg' won't crash when it encounters a test case for an internal function. I don't want someone using the package to call the function, but the package itself should be able to see its own contents.
2007 May 21
1
accessing unexported functions
I need to access some internal function of a package temporarily. These functions normally that are not visible outside of the package. I know the MyPackage:::myfunction mechanism, but that does not solve my problem. Instead, I need to add the "internal namespace" of the package to the search path, then I can run a few commands with these functions available, and then the internal
2006 Jan 24
1
unexported symbols in libR.so of r-devel
Thanks to Matthias Burger, I came to know that in r-devel, a lot of symbols are no longer exported in libR.so, which breaks the package rpvm since it calls these functions in serialize.c. R_InitInPStream R_InitOutPStream Since the change is fairly recent (earlier this month), I guess the core team will be making further changes. In any case, please add these two to the exported list. Thanks,
2009 Nov 23
1
NFS4 issue
...lt;ffffffff886305a1>] :nfsd:nfsd+0x0/0x2cb Nov 23 10:42:26 sulphur kernel: [<ffffffff886305a1>] :nfsd:nfsd+0x0/0x2cb Nov 23 10:42:26 sulphur kernel: nfsd: last server has exited Nov 23 10:42:26 sulphur kernel: nfsd: unexporting all filesystems Nov 23 10:42:44 sulphur kernel: kmem_cache_create: duplicate cache nfsd4_files Nov 23 10:42:44 sulphur kernel: [<ffffffff88646f29>] :nfsd:nfs4_state_start+0x52/0x18f Nov 23 10:42:44 sulphur kernel: [<ffffffff886303ae&...
2012 Aug 24
2
how to keep the documents of private functions private
First time posting on this forum. The short version of the question is how to keep the documents of private (unexported) functions private. It seems that the documents of the private functions will be compiled into the user manual even if the corresponding functions are not exported. Is there a solution to this? I want to have documents for these functions for my own use, but I don’t want to release them to distra...
2006 Sep 21
1
Package dependencies and imports
...me systems. This allows the Rcmdr package to build and check on systems without rgl present; if rgl isn't present, then menu items using it are disabled (in the development version of the Rcmdr package, not installed in the first place). If rgl is present, however, the Rcmdr package uses some unexported functions in it. I've done this via rgl::: to avoid importing from the rgl namespace: Because rgl isn't declared as a dependency, I can't import its namespace. In the current R 2.4.0 alpha and R 2.5.0 devel, however, using rgl::: generates a warning when the package is checked. Is th...
2011 Jun 28
2
A masked function is a masked function by any other name
Dear all, It looks like I do not grasp the concept of masked functions enough as to solve this trivial problem. The code that replicates the problem (a source code tree that realizes a R package actually) is under github so one can call it clone it easily from the command line (though more experienced users will spot the problem by browsing through the package code): git clone http://jcborras at
2023 May 18
4
unexport swiotlb_active
Hi all, this little series removes the last swiotlb API exposed to modules. Diffstat: arch/x86/include/asm/xen/swiotlb-xen.h | 6 ------ arch/x86/kernel/pci-dma.c | 28 ++++------------------------ drivers/gpu/drm/nouveau/nouveau_ttm.c | 10 +++------- drivers/pci/xen-pcifront.c | 6 ------ kernel/dma/swiotlb.c | 1 - 5 files changed, 7
2015 Jan 24
3
Proper way to define cbind, rbind for s4 classes in package
...he call in the package file R/zzz.R using the .onLoad function: .onLoad <- function(...) { # Bind activation of cbind(2) and rbind(2) for S4 classes methods:::bind_activation(TRUE) } This works as expected. However, running R CMD check I am now getting the following NOTE since I am using an unexported function in methods: * checking dependencies in R code ... NOTE Unexported object imported by a ':::' call: 'methods:::bind_activation' See the note in ?`:::` about the use of this operator. How can I get rid of the NOTE and what is the proper way to define the methods cbind an...
2008 Jul 13
2
any way to set defaults for par?
...et the default values so that subsequent calls to par() use my defaults. The reason to want this is that every time I create a new graphic window (I'm using quartz on OSX, and so far no answers in the Mac mailing list), my parameters get reset to the builtin defaults. I read about the "unexported variable .Pars," but would like to know if there's any way to manipulate that variable. thanks Carl
2015 Jan 26
2
Proper way to define cbind, rbind for s4 classes in package
...t; >> .onLoad <- function(...) { # Bind activation of cbind(2) >> and rbind(2) for S4 classes >> methods:::bind_activation(TRUE) } This works as >> expected. However, running R CMD check I am now getting >> the following NOTE since I am using an unexported >> function in methods: >> >> * checking dependencies in R code ... NOTE Unexported >> object imported by a ':::' call: >> 'methods:::bind_activation' See the note in ?`:::` about >> the use of this operator. How can I...
2006 Sep 15
3
An update method for lists?
Hi, since lattice uses nested lists in various situations, it has had an unexported function called updateList for a while, which looks like > lattice:::updateList function (x, val) { if (is.null(x)) x <- list() if (!is.list(x)) stop("x must be NULL or a list") if (!is.list(val)) stop("val must be a list") xnames...
2016 Jul 01
2
Calling C implementations of rnorm and friends
Gabriel, Thanks for that! I guess I really should have figured that one out sooner, huh? I understand why that wouldn't be CRAN-compliant. But then, what *is* the proper way to do it? Is there any way I can call unexported functions from another package and have it accepted by CRAN? Also, if I instead re-write the random variable generating functions, do you have any idea of where the source code is in the stats package? As I said above, I can't seem to find the source code for the functional forms. Thanks,...
2014 May 08
1
checking dependencies in R code ... WARNING
I am trying to update an unsupported package and got the warning: * checking dependencies in R code ... WARNING 'library' or 'require' calls not declared from: 'Hmisc' 'R2HTML' 'tcltk' Missing or unexported object: 'utils::.win32consoleCompletion' See the information on DESCRIPTION files in the chapter 'Creating R packages' of the 'Writing R Extensions' manual. Is it only an error in the description file or in the code? Regards Knut
2008 Sep 17
1
[PATCH] linux/inotify.h: do not include <linux/fcntl.h> in userspace
...mplementations to copy the contents into a > > private header. > > glibc and dietlibc provide <sys/inotify.h>. newlib and uclibc don't. klibc > provides <sys/inotify.h> but it depends on <linux/inotify.h> Oh.. Sorry. uclibc provides <sys/inotify.h>. So unexporting <linux/inotify.h> breaks only klibc. -- Regards, Kirill A. Shutemov + Belarus, Minsk + ALT Linux Team, http://www.altlinux.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digit...
2016 Jul 01
1
Calling C implementations of rnorm and friends
...; wrote: > > Gabriel, > > > > Thanks for that! I guess I really should have figured that one out > sooner, > > huh? > > > > I understand why that wouldn't be CRAN-compliant. But then, what *is* the > > proper way to do it? Is there any way I can call unexported functions > from > > another package and have it accepted by CRAN? > > > There may be ways to call unexported functions that R CMD check will > not detect, but you should not look for ways to violate the spirit of > the policy. Work-arounds include asking the package main...