Displaying 20 results from an estimated 1000 matches similar to: "setMethod call in package code using Rcpp"
2011 Jan 26
1
Problem with "setMethod" in R package
Dear all,
My apologies for re-posting this question, but I have not found any
solution to my problem so far. I also think that my post may have been
overseen due to the posting time and high traffic on this list.
I experience a problem in implementing a S4 class in a package and would
appreciate your help in this matter.
The class is implemented using Rcpp, which works well. I then extend
2010 Dec 22
0
Rcpp 0.9.0 and RcppClassic 0.9.0
===== Summary =====
Version 0.9.0 of the Rcpp package is now on CRAN and its mirrors. This
release marks another step in the development of the package, and a few key
points are highlighted below. More details are in the NEWS and ChangeLog
files included in the package.
===== Overview =====
Rcpp is an R package and associated C++ library that facilitates integration
of C++ code in R
2010 Dec 22
0
Rcpp 0.9.0 and RcppClassic 0.9.0
===== Summary =====
Version 0.9.0 of the Rcpp package is now on CRAN and its mirrors. This
release marks another step in the development of the package, and a few key
points are highlighted below. More details are in the NEWS and ChangeLog
files included in the package.
===== Overview =====
Rcpp is an R package and associated C++ library that facilitates integration
of C++ code in R
2006 Apr 13
1
Wishlist: 'quietly' argument for .onAttach() / .First.li b()
From: Prof Brian Ripley
>
> On Thu, 13 Apr 2006, Peter Ruckdeschel wrote:
>
> > Hi R-devels,
> >
> > in "Writing R extensions" as well as in the help
> > to .onAttach(), you mention that one could
> > use this function to issue a start-up message/banner
> > for the package.
> >
> > My little wish for Easter:
> >
> > a
2011 Jun 23
1
Class not found when search in .onLoad
Hi,
I am facing with a strange behaviour of isClass and extends when these
are called in .onLoad in both R 2.12.1 and R 2.13.0. This is preventing
my package from doing some object initializations at a proper place
(i.e. in .onLoad).
Suppose one defines two S4 classes in a package, and that one needs to
check the inheritance between these two when loading the package (e.g.
to validate slots
2009 Jul 07
0
Protection stack overflow when calling setGeneric()/setMethod() from within .onLoad()
Hi list,
Calling setGeneric()/setMethod() from within the .onLoad() hook
of MyPkg package produces the following error:
> gctorture(TRUE)
> library(MyPkg)
.onLoad(): ok1
.onLoad(): ok2
Error : protect(): protection stack overflow
Error : .onLoad failed in 'loadNamespace' for 'MyPkg'
Error: package/namespace load failed for 'MyPkg'
This is with
2011 Feb 17
2
Newbie Rccp module question. "Failed to initialize module pointer"???
Hi all. I started looking at Rcpp, which looks pretty great, actually. At the
moment just trying to compile a module to get a feel how it all works without
fully understanding how all the pieces fit together.
Basically, i took the first example from Rcpp modules vignette:
fun.cpp
========================
#include <Rcpp.h>
#include <math.h>
using namespace Rcpp;
double
2013 Jan 15
1
Can not load Rcmdr
I am getting the error message:
> library(Rcmdr)
Loading required package: car
Loading required package: MASS
Loading required package: nnet
Error : .onAttach failed in attachNamespace() for 'Rcmdr', details:
call: structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj")
error: [tcl] invalid command name "image".
2011 Sep 14
1
[Q] Package NS Hook Lint NOTE
Have a question about the following NOTEs appearing on CRAN checks:
> .onLoad calls:
> require(methods)
>
> Package startup functions should not change the search path.
> See section ?Good practice? in ?.onAttach.
For years, I have had the following in my S4-requiring packages.
##---------------------------------------------------------------------
.onLoad <-
2011 Oct 15
2
.onLoad failing because could not find function "loadMethod"
Hi,
This strange warning happen sometimes when running 'R CMD check':
* checking whether the package can be loaded with stated dependencies
... WARNING
Error : .onLoad failed in loadNamespace() for ?pkgB?, details:
call: length(new("A"))
error: could not find function "loadMethod"
Error: package/namespace load failed for ?pkgB?
Execution halted
2018 Dec 21
2
Bug report: R.home() cause package Rcpp failed executing sourceCpp, similar bug are labeled "BUG 16660" since 2016 and here I could provide a solution that tested in my laptop.
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16660
Here is the bug, which R.home may generate a path contains a whitespace.
this will cause Rcpp failed executing sourceCpp
> sourceCpp("b:/2018-12-14/src/18020/MCMC.cpp")
Error in system(cmd, intern = !showOutput) : 'D:/Program' not found
Error in system(cmd, ignore.stderr = TRUE, intern = TRUE) :
2016 Apr 04
0
Rcmdr loading issue
Hi,
I have a issue loading Rcmdr today. It is very strange, as I could get it to work last week on the same computer.
I have tried restarting the computer, and re-installing R and XQuartz, but nothing changes.
This is what I get:
sessionInfo()
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.4 (El Capitan)
locale:
[1]
2020 Jul 17
0
Restrict package to load-only access - prevent attempts to attach it
Hi Henrik,
A bit late, but you can take a look at smbache's {import} package [1]
in case you didn't know it. I believe it does what you are describing.
[1] https://github.com/smbache/import
I?aki
On Tue, 23 Jun 2020 at 22:21, Henrik Bengtsson
<henrik.bengtsson at gmail.com> wrote:
>
> Hi,
>
> I'm developing a package whose API is only meant to be used in other
2020 Oct 11
3
Installing bioconduction packages in connection with loading an R package
Dear all,
My gRbase package imports functionality from the bioconductor packages graph, Rgraphviz and RBGL.
To make installation of gRbase easy, I would like to have these bioconductor packages installed in connection with installation of gRbase, but to do so the user must use setRepositories() to make sure that R also installs packages from bioconductor.
Having to call setRepositories causes
2013 Jun 10
1
Rcmdr seit heute nicht mehr ladbar
Wenn man ihn mal braucht ist er tot. folgende Fehlermeldung ereilt mich seit heute beim starten des R Commander auf dem Mac:
> library(Rcmdr)
Lade n?tiges Paket: car
Lade n?tiges Paket: MASS
Lade n?tiges Paket: nnet
Error : .onAttach in attachNamespace() f?r 'Rcmdr' fehlgeschlagen, Details:
? Aufruf: structure(.External(.C_dotTclObjv, objv), class = "tclObj")
? Fehler: [tcl]
2013 Jan 13
1
Loading circular package from Rprofile.site
Hi,
I installed "circular" package and I wanted to load it automatically
when R starts up, so I added the following lines in file
Rprofile.site,
.First <- function()
library(circular)
When R starts up, it gives me the following error:
----------
Loading required package: boot
Loading required package: graphics
Loading required package: stats
Error : .onAttach failed in
2003 May 22
1
[LLVMdev] allow gcc .... /full/path/to/libfoo.a
gccld would barf if you tried to specify the full pathname of an archive
on the command line to gcc, (e.g., instead of gcc ... -L/full/path/to -lFOO
you say gcc ... /full/path/to/libFOO.a) which many GNU Makefiles try to do.
This patch fixes that.
Ok to commit?
--
gaeke at uiuc.edu
gccld.cpp:
Fix typo in header.
Add IsArchive static method.
Roll LoadLibraryFromDirectory() into
2009 Aug 26
0
[LLVMdev] [Stackless] [C++-sig] [Boost] Trouble optimizing Boost.Python integration for game development (it seems too slow)
On Wed, Aug 26, 2009 at 4:41 AM, Dan Sanduleac<sanduleac.dan at gmail.com> wrote:
> Oh, I see. Didn't think of this, thanks!
>
> So, just to be clear, there's no binding overhead in Cython because the
> functions defined there are pure python, right? (The function objects I
> mean). Whereas the ones I defined in Boost are more expensive to call.
>
> On Wed, Aug
2009 Mar 31
4
what is the preferred method to create a package local variable?
for the moment, I'm using:
.onAttach <- function(libname, pkgname) {
.bbg.db.conn <<- dbConnect(dbDriver("PostgreSQL"), user="blah","blah")
}
.onUnload <- function(libpath) {
dbDisconnect(.bbg.db.conn)
}
which results in a hidden global variable in the global environment.
I would prefer to make the assignment only in the package namespace.
2010 Aug 05
3
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
Anton,
Thanks for your comment.
2nd patch attached.
- s/SharedDir/SharedLibDir/g
- move prefix=cyg sunk into if(cygwin or mingw)
arigato gozaimasu...Takumi
* Additional issues
- You may build LLVMHello.dll but I don't modify lib/Transforms/Makefile.
Because making LLVMHello.dll requires the library LLVM.dll,
but it oughta be on the way to making libs at building