Hi,
Â
My name is
Eva and this is my first message here. My English is not very good, but I hope
you can understand my question, in the context of an academic project.
Â
I have
developed several functions in R and the
idea is that the user can access functions in order to:
Â
1)Â Â Â Â Â
Alter
parameters in relation with data and type of analysis.
2)Â Â Â Â Â
Run
statistical analysis (Text and pdf files with results will be generated).
3)Â Â Â Â Â
View
the value of the most important parameters.
Â
All the
parameters I need are stored in a list object, and this list is used in all the
functions along the cycle performed by the user, but I would like the user does
not need to pass the name of the list as argument when he/she runs the different
functions, so I think I need to treat the list as a global variable.
Â
Firstly, I
used the global assignment operator (â<<-â); secondly, I used âgetâ and
âassignâ
functions and even I used a new.env() in order to use a new environment
exclusively for my list. However, when I try to build a package with all my
functions I donât reach this end, because of an error in parse process.
Â
My question
for you is the following: taking into account that my end is to build a
package, what can I do with this âglobalâ list?. How can I treat it?.
Â
Thanks in
advance.
Â
Regards,
Eva
Â
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.