similar to: Error in namespaceExport(ns, exports) :

Displaying 20 results from an estimated 2000 matches similar to: "Error in namespaceExport(ns, exports) :"

2012 Jul 30
6
Convert variable to STring
Dear all, I have a variable that I would like also to use it as a string. The reasons is that I want to collect results from different function to one table.. So when I use the  colnames(mymatrix) <-c(function1.function2,function3) the function1, function2, function3 to be "converted" to simple strings so as  colnames(mymatrix)
2012 Feb 09
3
calling the function which is stored in a list
Hi I'm storing two functions in a list # creating two function function1 <- function(n) { return(sum(n)) } function2 <- function(n) { return(mean(n)) } #storing the function function3 =c(function1,function2) is it possible to call the stored function and used it ? x=c(10,29) funtion3[1](x) Thanks ----- Thanks in Advance Arun -- View this message in context:
2008 Apr 22
2
optimization setup
Hi, here comes my problem, say I have the following functions (example case) #------------------------------------------------------------ function1 <- function (x, theta) {a <- theta[1] ( 1 - exp(-theta[2]) ) * theta[3] ) b <- x * theta[1] / theta[3]^2 return( list( a = a, b = b )) } #----------------------------------------------------------- function2<-function (x, theta) {P
2009 Dec 22
1
[LLVMdev] is there a compiler barrier that is effective at codegen level?
Hi, I would like to prevent that two adjacent calls to external functions getting interleaved/separated by other neighboring code. This mixing seems to happen in the code generator. I can prevent it by putting the two calls into a separate BB, but then I can't use -simplifycfg, -jump-threading, ... as is. Here is an example: %160 = add i64 %158, %159 ; <i64>
2014 Jun 11
3
[LLVMdev] How do clang & clang++ choose function names for LLVM IR?
Hello all, I'm getting started on a project using LLVM's opt tool to do static analysis, printing call graphs and such. When compiling C programs to IR (and eventually to call graphs), function names remain the same (main, function1, function2 etc.), but when compiling the same program as C++, the function names often have cruft added to them (_Z9function1v, _Z9function2v etc.) which
2007 Jul 31
1
Getting variable name used in function...
Dear Users, I am using functions for calculations in my study. I have two functions and one is calling the other two times one after another. But the called function deals with two different data object (matrix, data frame, etc.), so I could not make the second function output data object-free (for example, Ý would like to write csv files but could not give different file names) and I would
2012 Oct 05
2
Using variables from different environments in one function
Dear R-community, I have been experiencing this issue with functions within a function and I can kind of feel where the problem is (environments, closures etc), but I don't manage to solve it. I will sketch it with an example: #We have two simple "inner" functions: ############## INNER FUNCTION1 ################# innerfunction1<-function() { ab<-a+b
2015 Aug 26
2
declaring dependencies of shiny app in inst/
Dear all, I have a package implementing a shiny app, putting the R code of the app (server.R and ui.R) in inst/... and then having a simple function merely starting the app with something along the lines of: runApp(system.file("inst/...")) However, the app itself uses functions from packages which are not used elsewhere in the code. What is the best way to declare these dependencies
2010 May 01
3
Resize Graphics Window
Need way to resize an existing graphics window. This should be applicable across platforms (as part of a package). Context: function1() draws main plot (I'm using grid), function2() adds smaller plot above main plot, but this one can sometimes overflow the original graphics window area. Thanks, Sigal
2008 Feb 20
1
Problem Using the %in% command
Hello all! I have the following problem with the %in% command: 1) I have a data frame that consists of functions (rows) and genes (columns). The whole has been loaded with the "read.delim" command because of gene-duplications between the different rows. 2) Now, there is another data frame that contains all the genes (only the genes and without duplicates) from all the functions of
2019 Sep 06
2
Cryptic error message from namespaceExport
Dear all, Today I got this error message (R 3.6.1) when installing my package: Error: package or namespace load failed for ?inlatools? in namespaceExport(ns, exports): undefined exports: .__C__inla My package was using setOldClass("inla") and exported the "inla" class via the NAMESPACE. It imports functions from the INLA package. Older versions of the INLA package did not
2019 Sep 06
1
Cryptic error message from namespaceExport
Dear Michael, my package has setOldClass("inla") and the NAMESPACE contains exportClasses(inla) and importFrom(INLA, inla.posterior.sample) the old version of INLA uses the S3 class "inla" but does not export it. the new version of INLA has setOldClass("inla") and the NAMESPACE contains exportClasses(inla) installing my package in combination with an older INLA
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
autogen.sh | 2 configure.ac | 39 +++ libswfdec/js/jsfun.c | 11 - libswfdec/js/jsinterp.c | 5 libswfdec/js/jsobj.c | 2 libswfdec/swfdec_debug.h | 2 libswfdec/swfdec_js.c | 4 libswfdec/swfdec_js_color.c | 33 +-- libswfdec/swfdec_js_movie.c | 25 -- libswfdec/swfdec_movie.c
2009 May 25
0
Or operator on working on the r-objects doesn't generate a logical value
Hi friends, Can somebody help me out please? I have to create a string for a particular if condition , with some values(returned by function1) which are always variable. *Step-I* Suppose function1 returns a dataframe like this,shown below with two values 3 and 4:--- x 1 3 2 4 *STEP-II *For creating the string with these values returned by function 1 i have another function2. These values
2019 Sep 06
0
Cryptic error message from namespaceExport
Just to clarify, your package is exporting a class that is not defined? Or is it exporting a class that is defined by a dependency and then masked by setOldClass()? A simple reproducible example would help. On Fri, Sep 6, 2019 at 7:48 AM Thierry Onkelinx via R-devel <r-devel at r-project.org> wrote: > > Dear all, > > Today I got this error message (R 3.6.1) when installing my
2007 Jun 14
1
Using subset() in a user-defined function
Hello, I'm having a problem with using subset() inside a function I'm writing. Ignoring everything else in the function, the problem can be illustrated by (where master.frame is the data frame I'm using): function1 <- function(arg1="", arg2="", arg3=""){ temp.frame <- subset(master.frame, a == arg1 & b == arg2 & c == arg3) } This
2006 Aug 16
7
ActionWebService: XMLRPC Server Multicall possible?
Hi all, I have a question concerning ActionWebService XMLRPC servers: Is it possible to send multicall requests to the Web service? I tried to use multicall and get the error message: no such method ''system.multicall'' on API [MyAPI] In Changeset 2021 there is the following commit message: add ''system.multicall'' support to XML-RPC. boxcarred methods must
2011 Apr 07
1
R 2.13.0-beta for Windows, file.copy() throws suspicious errors due to default value of copy.mode
While checking packages against R 2.13.0-beta on Windows, I have run into a few strange error messages related to copying files. The errors all relate to file.copy() and have the form of: Error in Sys.chmod(to[okay], file.info(from[okay])$mode, TRUE) : 'mode' must be of length at least one After half a day of tinkering, the best reproducible example I can come up with involves using
2018 Jan 30
7
Best practices in developing package: From a single file
On 30/01/2018 11:29 AM, Brian G. Peterson wrote: > On Tue, 2018-01-30 at 17:00 +0100, Suzen, Mehmet wrote: >> Dear R developers, >> >> I am wondering what are the best practices for developing an R >> package. I am aware of Hadley Wickham's best practice >> documentation/book (http://r-pkgs.had.co.nz/).??I recall a couple of >> years ago there were some
2006 Apr 17
4
R debugging options
Hello, What options are available for me to debug my R scripts? For example I normally do something like >source("myfunctions.R") >function1("height", "weight") myfunctions.R is a large R source file that contains many functions. function1 is the "main" function in myfunctions.R. It calls many other user-written functions that are also in