Full_Name: Dragan Sestovic
Version: 2.3.0
OS: Windows XP
Submission from: (NULL) (139.149.1.194)
I can not save R objects from function using "save". The simple example is
below:
I do not understand why function funSave.1 fails. Also, why does function
funSave.2 work?
+ {
+ save(a, file="a.1.dat")
+ }
+ {
+ b <- a
+ save(a, file="a.2.dat")
+ }
save(a, file="a.dat")
load("a.dat")
a
a <- 1:10
funSave.1(a)
load("a.1.dat")
a
Error: recursive default argument reference
a <- 1:10
funSave.2(b)
load("a.2.dat")
a