Displaying 20 results from an estimated 2000 matches similar to: "Error in save.image(): image could not be renamed"
2003 Apr 03
1
wine: lsta /some/directory/wine/conf/wineserver-tux/socket : No such file or directory
Hi, i try to install MusicMatch JukeBox 1.43 in my RedHat Linux 8.0.
Ussualy i work whit RedHat 7.3 whitout problems, everything is ok. But
whit RedHat 8.0 display the nex problem:
[rodox@tux rodox]$ mmjb/mmjb
wine: lstat /home/rodox/mmjb/wine/conf/wineserver-tux/socket : No such
file or directory
I search in google, and http://www.winehq.org whitout good results...
i don't understand
2003 Oct 17
1
troubleshooting unexpected disconnects
Hi list,
I am still having troubles with rsync, as on large areas in our setup, it
keeps dying unexpectedly. See my previous post two days ago for the
initial tries. I realize it is a somewhat broad question, but how do I
troubleshoot these disconnects?
Im no great programmer, although we have a few good c programmers around,
and if needed I can ask for their help.
But for now, my thinking is,
2005 Sep 20
1
Interpretation of csplit from rpart.object
Dear members of R-list,
I need to reproduce the rules of a decision tree. For that I need to use the
csplit information from the rpart.object. But I cannot uderstand the
information because from my example I get:
> rpart.tree$csplit
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 1 3 3 1 3 3 3
[2,] 2 3 3 1 2 2 2
[3,] 1 3 3 1 3 3 3
2009 Oct 26
2
R CMD check: Error in .C
Function/file names are hypothetical. Say I have written myfunction.R,
which calls myfunction.c via .C("myfunction", ...).
I've compiled successfully myfunction.c via R CMD SHLIB myfunction.c
in the terminal. Then, in the R console:
dyn.load("myfunction.so")
source("myfunction.R")
test <- myfunction() # works fine
So everything is in order, myfunction works
2000 Mar 09
2
how to document user-defined packages for windows
After several hours of trial and error I've figured out how to create
packages for use by rw1000 ("Writing R Extensions" seems not to cover
this).
I haven't been able to figure out how to make help files work. I want plain
text only, via help(name) or ?name.
I create a 'help' subdirectory containing a 00Titles file and
function-specific help files in the package
2007 Apr 03
3
Referencing function name from within function
Hello,
For verbose coding I'd like to do something like:
> myfunction <- function(x){
> if (a){
> stop(paste(myfunction_name_here,"requires xyz!")
> }
Is that possible?
Thanks for any hints, Joh
2004 Sep 03
2
windowing strategies
Hello to everybody,
Does anyone has implemented a function for evaluating models using windowing
strategies, such as growing window or sliding window ones?
The aim is to evaluate regression models on a time series data. I do not use
cross-validation once data sorted in a radom way does not make sense when
evaluating time series.
Thanks
Joao Moreira
2006 Jun 28
2
hopefully my last question on lapply
Marc and many other people ( whose names escape me ) have been
very helpful in explaining the use of lapply to me.
In his last response, Marc explained that if tradevectors is a list
of vectors of different lengths ( excuse my terminology ) then
lapply(tradevectors,function(x) G[x]*B[x] )
will go through each component of the list as if it was a vector
and apply the element by element
2012 Mar 13
2
beginner's loop issue
Dear All,
I hope you don't mind helping me with this small issue. I haven't been using
R in years and I'm trying to fill in a matrix
with the output of a function (I'm probably using the Matlab logic here and
it's not working).
Here is my code:
for (i in 1:length(input)){
out[i,1:3] <- MyFunction(input[i,1],input[i,2], input[i,3])
out[i,4:6] <-
2006 May 16
3
multiple plots in a function()
Dear all,
I have the following problem:
I have written a function genereating to plots, eg
myfunction <- (data, some.parameters) {
#some calculations etc
.
par (mfrow=c(1,2))
plot1(......)
plot2(.....)
}
which works fine. But for analysing several variants, I tried a slope, eg:
par (mfrow=c(5,5))
for ( i in 1:10) {
myfunction(data, i)
}
Off
2009 Jun 03
1
Using constrOptim() function
I have a function myFunction(beta,x) where beta is a vector of coefficients
and x is a data frame (think of it as a matrix). I want to optimize the
function myFunction() by ONLY changing beta, i.e. x stays constant, with 4
constraints. I have the following code (with a separate source file for the
function):
rm(list=ls())
source('mySourceFile')
2018 Aug 09
3
WishList: Remove Generic Arguments
I apologize if this issue has been raised before.
I really like object oriented S3 programming.
However, there's one feature of object oriented S3 programming that I don't
like.
Generic functions can have arguments other than dots.
Lets say you have an R package with something like:
print.myfunction (f, ...)
{ dosomething (f, ...)
}
Noting that I use function objects a lot.
R CMD
2012 Nov 23
1
Adding a function with default parameters into the Rcmdr menu
Hi everyone,
I made some tests with Rcmdr, to add a function with default parameters :
For example (very simple):
myfunction<-function(var="314"){
print("hello")
print(var)
}
if I run myfunction() directly i see :
> myfunction()
[1] "hello"
[1] "314"
it's ok.
But if i edit de Rcmdr-menu.txt (in
2005 Oct 08
4
Warning: condition has length > 1
Hi -
I was wondering if anyone came across a problem such as mine! I was trying
to create a user-defined function, however, the results from calling the
function are unexpected!
When passing X parameter as a single value variable (x<-c(3)), everything
works fine. However, when passing a parameter as a vector with multiple
values (as the case in my code), the 'if condition' is only
2008 Dec 17
4
passing arguments to subset from a function
Hello R-helpers,
I'm writing a long function in which I manipulate a certain number of datasets. I want the arguments of said function to allow me to adapt the way I do this. Among other things, I want my function to have an argument which I will pass on to subset() somewhere inside my function. Here is a quick and simplified example with the iris dataset.
myfunction<-function(table,
2011 Jun 10
4
running R commands asynchronously
I am interested in running R commands asynchronously.
My first choice is in the same R session that I am currently in.
Here, the goal would be to run something like
RunAsynchSameSession(myfunction(), "outputname.rda")
Once RunAsynchSameSession had started myfunction(),
RunAsynchSameSession would complete immediately. myfunction would
keep going. It is OK if execution of the
2004 Oct 16
7
sapply and loop
Dear all,
I am doing 200 times simulation. For each time, I generate a matrix and
define some function on this matrix to get a 6 dimension vector as my
results.
As the loop should be slow, I generate 200 matrice first, and save them into
a list named ma,
then I define zz<-sapply(ma, myfunction)
To my surprise, It almost costs me the same time to get my results if I
directly use a loop
2004 Oct 16
7
sapply and loop
Dear all,
I am doing 200 times simulation. For each time, I generate a matrix and
define some function on this matrix to get a 6 dimension vector as my
results.
As the loop should be slow, I generate 200 matrice first, and save them into
a list named ma,
then I define zz<-sapply(ma, myfunction)
To my surprise, It almost costs me the same time to get my results if I
directly use a loop
2018 Mar 28
7
[RFC] Generate Debug Information for Labels in Function
Hello all,
I would like to enhance LLVM debug info that supports setting
breakpoint on labels in function.
Generally, if users use GDB as their debugger, they could set
breakpoints on labels in function. Following is an example.
// C program
static int
myfunction (int arg)
{
int i, j, r;
j = 0; /* myfunction location */
r = arg;
top:
++j; /* top location */
if (j == 10)
goto
2011 Oct 28
3
program never enters browser mode when I add browser()
Dear All
I have a program that breaks at the following lines of code:
bigfunction =
{
...
object1 = myfunction(x)
object2 = strsplit(object1, ",")[[1]]
...
}
where myfunction is defined elsewhere outside of bigfunction.
The error I get is "error in strsplit() -- object1 not found".
However, when I insert browser() into my code so that the above reads,
bigfunction =
{