search for: testfunct

Displaying 10 results from an estimated 10 matches for "testfunct".

Did you mean: testfunc
2000 Dec 29
2
how to create help files
...functions, which works all very well, apart from that I am not able to create appropriate help files. For illustration, here is a simple example of where I'm stuck: > # first, create a simple function f1: > f1 <- function(x) x^2 > # create directories where a package called "testfunctions" with my own functions will live: > R.home() [1] "D:\\Programme\\R\\rw1020" > mypath <- paste(R.home(),"\\library\\testfunctions", sep="") > mypath [1] "D:\\Programme\\R\\rw1020\\library\\testfunctions" > dir.create(mypath) > dir.cr...
2011 Sep 26
1
Disabling Auto-complete
Hi, I am a new user to R. I am having the following problem while using R: The defined function is having following a$unit as input but if I define a$unit1 then still I am getting the output which is not desired. __________________________ *Function:* testfunction<-function(a){ stopifnot(a$unit==1) cat("All is well") } b<-list(unit1=1 ) testfunction(b) --------------------------------------------- *Output:* > testfunction<-function(a){ stopifnot(a$unit==1) cat("All is well") } b<-list(unit1=1 ) testfunction(b) testfuncti...
2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
...e llvm 3.8.1 + gcc (Linux) + JIT llvm 3.8.0 + mingw-gcc (Windows) + JIT llvm 3.8.0 + mingw-gcc (Windows) + Interpreter But it does not work for llvm 3.8.1 + gcc (Linux) + Interpreter. In that case I get the error message "LLVM ERROR: Tried to execute an unknown external function: testFunction." Am I using ExecutionEngine.addGlobalMapping() in the wrong way, even it works in three out of four scenarios? #include <llvm/Support/TargetSelect.h> #include <llvm/Analysis/Passes.h> #include <llvm/Transforms/Scalar.h> #include <llvm/Transforms/IPO/PassManagerBuilder...
2001 Jan 05
2
running Rcmd INSTALL, again
Ok, one last try. R1.2.0, WinNT 4.0: [R is installed in: R_HOME=D:\Programme\R\rw1020] Can anyone give a hint what the following error message (when running Rcmd INSTALL) means and what to do about it? cd D:\Programme\R\rw1020\src\library D:\Programme\R\rw1020\bin\rcmd install testfunctions make: Entering directory `/cygdrive/d/Programme/R/rw1020/src/gnuwin32' dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a make: dlltool: Command not found make: *** [libR.a] Error 127 make: Leaving directory `/cygdrive/d/Programme/R/rw1020/src/gnuwin32' *** Installatio...
2009 Nov 12
1
saving custom functions to existing library
Hi all, I writen one function in Rgui(R Editor) I saved it as testfunction.R and while I am running that file using source(C:/testfunction.R) its running and it is giving subsequent result insted of this there is any thing like to save my function to save in existing library to reuse it when ever I want to use because I have to use those function from my C# co...
2010 Feb 08
1
Help with assigning values to a row or column
...it runs on. I am, however, having trouble accessing the row or column within this dynamic variable. I have looked through the archives (nothing there) and read the rules for posting to this list. Please help me out! Here is a sample of the problem: testMatrix = matrix(data=2, nrow=10, ncol=10) testFunction = function (input) { inputName <<- deparse(substitute(input)) assign(inputName[1,], 4, envir = .GlobalEnv) } #this will give you the error testFunction(testMatrix) When I try to access "inputName[1,]" instead of "inputName," it fails. Does anyone know how to...
2009 Oct 27
2
Why 'return' is needed in R?
It seems that 'return' is not necessary when returning a value. If this is the case, I don't understand why 'return' is a keyword in R. Is there a case in which I have to use 'return'? > f<-function(x) { + x + } > g<-function(x) { + return(x) + } > print(f(2)) [1] 2 > print(g(2)) [1] 2 >
2007 Dec 17
1
cor.test formula
...ation coefficient. I know that cor.test delivers the correlation coefficient and the t-test, p-value and the 95 confidence interval. I am interested in how the p-value is calculated. Usually if i type the name of the function i get explicitly the coding of that function, but if i type > cor.testfunction (x, ...) UseMethod("cor.test")<environment: namespace:stats> So .... How can i get the coding to find out how the p-value is calculated for this function? Thanks, Monica _________________________________________________________________ [[replacing trailing spam]] [[al...
2011 Jul 23
6
Rails 3.1 CoffeeScript not working
I convert my old JS files into CoffeeScript, In my public controller I used this functions $(''#events a'').lightBox() $(document).ready -> $("#slider").easySlider auto: true, continuous: true they load inside application.js like this (function() { $(''#events a'').lightBox(); $(document).ready(function() {
2001 Jan 05
2
AW: running Rcmd INSTALL, again
...talled in: R_HOME=D:\Programme\R\rw1020] > > > > Can anyone give a hint what the following error message (when running > Rcmd > > INSTALL) means and what to do about it? > > > > cd D:\Programme\R\rw1020\src\library > > D:\Programme\R\rw1020\bin\rcmd install testfunctions > > make: Entering directory `/cygdrive/d/Programme/R/rw1020/src/gnuwin32' > > dlltool -k --as as --dllname R.dll --def R.exp --output-lib libR.a > > make: dlltool: Command not found > > make: *** [libR.a] Error 127 > > make: Leaving directory `/cygdrive/d/Pr...