Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-08 Thread Eva Prieto Castro
> > .ChrL.env$bStarted <- FALSE > > And run ok!! > > I supose the method let the fact of initializing data structure, but not > the fact of assign. > > The basic example runs ok. Now I have to test all the project. > > > Thanks!! > > Eva > > > &g

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-08 Thread Eva Prieto Castro
Solved!! I removed this line: .ChrL.env$bStarted <- FALSE And run ok!! I supose the method let the fact of initializing data structure, but not the fact of assign. The basic example runs ok. Now I have to test all the project. Thanks!! Eva 2014-07-08 13:02 GMT+02:00 Eva Prieto Cas

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-08 Thread Eva Prieto Castro
2014-07-08 12:55 GMT+02:00 Eva Prieto Castro : > Duncan, > > I don't export it in the sense that I dont't include it in namespaces as > "export()" because it is not a function. Simply I include it in > ChrL-internal.r, as follows: > > .ChrL.env <- new

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-08 Thread Eva Prieto Castro
w it does not run and I don't know the reason. Thanks. Eva 2014-07-08 12:49 GMT+02:00 Duncan Murdoch : > On 08/07/2014, 12:56 AM, Eva Prieto Castro wrote: > > Duncan, > > > > Yes, it has exactly that line. > > > > I know it does not exists because of th

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-08 Thread Eva Prieto Castro
Hi again, I tested again without dot (i.e. ChrL.env and not .ChrL.env) and the problem exists too. I don't have any other idea to test. Regards. Eva 2014-07-08 7:00 GMT+02:00 Eva Prieto Castro : > Moreover, with ls(all.names=TRUE) it should appear and it does not. > > Eva >

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Moreover, with ls(all.names=TRUE) it should appear and it does not. Eva 2014-07-08 6:56 GMT+02:00 Eva Prieto Castro : > Duncan, > > Yes, it has exactly that line. > > I know it does not exists because of this: > > > library("ChrL") > > .ChrL.env &

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
ave to solve this urgently and I don't find the solution. Thanks again. Eva 2014-07-08 1:56 GMT+02:00 Duncan Murdoch : > On 07/07/2014, 7:13 PM, Eva Prieto Castro wrote: > > Duncan, > > > > The ChrL folder has the following components: > > > > * Descr

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
e following: R CMD INSTALL D:/ChrL R CMD check D:/ChrL R CMD build D:/ChrL R CMD INSTALL --build D:/ChrL Consequently, zip is generated, and I load it in RGUI. Then I do "library(ChrL)", but I see .ChrL.env does not exists. ¡In 3.0.1 version it run ok!. What is the reason why in 3

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Duncan, One note: although I used package.skeleton more than one time, I always do it after remove ChrL folder. Eva 2014-07-08 0:55 GMT+02:00 Duncan Murdoch : > On 07/07/2014, 6:39 PM, Eva Prieto Castro wrote: > > Hi again, Duncan > > > > I think I must tell you all the

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
reated.* Really I added it to the package (in folder created by package.skeleton) and then I run "R CMD INSTALL ...", "R CMD check ...", "R CMD build ...", "R CMD INSTALL --build ...". Then I load the zip in RGUI and I do "library(ChrL)", but .ChrL.

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
not exist!. Description file: Package: ChrL Type: Package Title: What the package does (short line) Version: 1.0 Date: 2014-07-08 Author: Eva Prieto Castro Maintainer: Eva Prieto Castro Description: Test Pkg License: Unlimited Namespace file: exportPattern("^[[:alpha:]]+") I also test

Re: [R] [R-es] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
tested it yet. Regards. Eva 2014-07-07 10:21 GMT+02:00 Eva Prieto Castro : > Hi everybody > > I have a very big problem: > > With R 3.0.2 I could construct the package for this code: > > > if (exists('.ChrL.env') == TRUE) { > rm(.ChrL.env) > } > > .

[R] Consulta paquetización con versión R 3.1.0

2014-07-07 Thread Eva Prieto Castro
Hi everybody I have a very big problem: With R 3.0.2 I could construct the package for this code: if (exists('.ChrL.env') == TRUE) {   rm(.ChrL.env) } .ChrL.env <- new.env() .ChrL.env$lGlo <- list() .ChrL.env$bStarted <- FALSE CheckGloCreated <- function() {   if (.ChrL.env$bStarted == TRUE)

[R] Arguments in functions when packaging

2014-01-27 Thread Eva Prieto Castro
Hi everybody, I have a doubt in relation with arguments in functions when packaging: Does it make sense the fact of having dots as an argument when it is the only argument?.  I mean you have a package and a function that will be used directly by the user has dots as an argument; for example:

Re: [R] Packaging - Function with dots as argument

2014-01-26 Thread Eva Prieto Castro
Hi again, I have chosen the solution reading the Rd file of xyplot.zoo function, in zoo package. Regards. Eva El Domingo 26 de enero de 2014 2:45, Eva Prieto Castro escribió: Hi everybody, I am writing the .Rd files of my pckage, and I have a doubt in relation with the Rd file of a

[R] Packaging - Function with dots as argument

2014-01-25 Thread Eva Prieto Castro
Hi everybody, I am writing the .Rd files of my pckage, and I have a doubt in relation with the Rd file of a function that has dots as unique argument. I mean the following: g <- function(a,b) a + b f <- function( ... ) g(...) Imagine I have the Rd file of "f" function. The "usage" is as follo

Re: [R] Packaging: Doubt in relation with "R CMD Rd2pdf packagename"

2014-01-07 Thread Eva Prieto Castro
(ProgramFiles) - in the previous situation R was in Program Files and MikTeX was in Program Files (x86). Now R CMD check runs correctly and R CMD Rd2pdf runs correctly too. I am very happy with the results!. Thank you! Eva El Martes 7 de enero de 2014 18:50, Eva Prieto Castro escribió

Re: [R] Packaging: Doubt in relation with "R CMD Rd2pdf packagename"

2014-01-07 Thread Eva Prieto Castro
solve it. Please could anybody help me? Thanks. Eva El Martes 7 de enero de 2014 20:00, Eva Prieto Castro escribió: Thanks Rich. I used your indications, but it was correctly in PATH variable. My path is C:\Program Files (x86)\MiKTeX 2.9\miktex\bin. I send you a print. Do you have any

Re: [R] Packaging: Doubt in relation with "R CMD Rd2pdf packagename"

2014-01-07 Thread Eva Prieto Castro
Thanks Rich. I used your indications, but it was correctly in PATH variable. My path is C:\Program Files (x86)\MiKTeX 2.9\miktex\bin. I send you a print. Do you have any other idea?. Thanks again. Eva El Lunes 6 de enero de 2014 23:36, Eva Prieto Castro escribió: Hi everybody, I

[R] Packaging: Doubt in relation with "R CMD Rd2pdf packagename"

2014-01-06 Thread Eva Prieto Castro
Hi everybody, I have created a package without documentation and now I want to create it with a pdf manual. That is the reason why I have created the .Rd files in man folder. In this way I obtain a pdf manual usind "R CMD check packagename", but it ignores the \code{\link{function.name}}... I

[R] Packaging

2013-08-30 Thread Eva Prieto Castro
Hi, I have a problem when I try to generate the Documentation pdf (from .rda files)in Spanish during the package creation. Could you tell me the way I can do it?. Thanks in advance. Regards. Eva [[alternative HTML version deleted]] __ R-help

[R] The secret of wisdom, power and knowledge is humility.

2013-04-20 Thread Eva Prieto Castro
ating dummy variables Para: "Eva Prieto Castro" CC: "r-help@R-project.org" Fecha: domingo, 21 de abril, 2013 03:16 On 21/04/13 10:56, Eva Prieto Castro wrote: > Hi, > > Why do you write that dummy variables are not needed in R?. I would like you > explain it.

Re: [R] Source Code

2013-04-20 Thread Eva Prieto Castro
.coords(x, y, recycle = TRUE), labels, adj,     pos, offset, vfont, cex, col, font, ...)) } Regards, Eva --- El dom, 21/4/13, David Winsemius escribió: De: David Winsemius Asunto: Re: [R] Source Code Para: "R. Michael Weylandt " CC: "Eva Prieto Castro" , "&q

Re: [R] creating dummy variables

2013-04-20 Thread Eva Prieto Castro
Hi, Why do you write that dummy variables are not needed in R?. I would like you explain it. Thanks, Eva --- El dom, 21/4/13, David Winsemius escribió: De: David Winsemius Asunto: Re: [R] creating dummy variables Para: "Bert Gunter" CC: "r-help@R-project.org" , "shyam basnet" Fecha: do

Re: [R] Source Code

2013-04-20 Thread Eva Prieto Castro
rce Code Para: "Eva Prieto Castro" CC: "" Fecha: domingo, 21 de abril, 2013 00:34 On Apr 20, 2013, at 6:23 PM, Eva Prieto Castro wrote: > Dear all, > > How can I get the source code of text function? > What is the 'text function'? Try ty

[R] Source Code

2013-04-20 Thread Eva Prieto Castro
Dear all, How can I get the source code of text function? Regards Eva [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.

Re: [R] Problem with handling of attributes in xmlToList in XML package

2013-04-16 Thread Eva Prieto Castro
Hi, Santiago: Yes, your e-mail has been received. I'm sorry, I can't solve your question. Regards. Eva --- El mar, 16/4/13, santiago gil escribió: De: santiago gil Asunto: Re: [R] Problem with handling of attributes in xmlToList in XML package Para: r-help@r-project.org Fecha: martes, 16 de

Re: [R] model frame and formula mismatch in model.matrix()

2013-04-13 Thread Eva Prieto Castro
Hi Julien, >From my point of view this error may be produced by the fact you are working >with a lot of variables, so the number of characters if you take them into >account as character is bigger than the system can support. Have you tried to test an example with 50 variables, for example?. S

Re: [R] Graphic window dimensions

2013-04-11 Thread Eva Prieto Castro
escribió: De: Prof Brian Ripley Asunto: Re: [R] Graphic window dimensions Para: "Eva Prieto Castro" CC: "Uwe Ligges" , r-help@r-project.org Fecha: lunes, 8 de abril, 2013 10:02 On 08/04/2013 07:54, Eva Prieto Castro wrote: > > Hi Uwe, > > Thanks. At this point

[R] Max width and height

2013-04-08 Thread Eva Prieto Castro
Dear all, How can I calculate (in runtime) the max width and height I can use in order to avoid the content in graphics window appears truncate?. In Windows I can avoid it (using windows(width=my.width, height=my.height, rescale="fixed") because the value "fixed" in rescale makes the scroll bar

[R] Importing from file to graphic window

2013-04-08 Thread Eva Prieto Castro
Dear all, Can I "import" the content of a pdf (or jpg) and put it in the graphic window?. Thanks. Eva [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] Graphic window dimensions

2013-04-08 Thread Eva Prieto Castro
ontent in graphic window although I generate the pdf in A4 paper?. Or is there a method for show a scroll bar? Thanks. Eva --- El lun, 8/4/13, Prof Brian Ripley escribió: De: Prof Brian Ripley Asunto: Re: [R] Graphic window dimensions Para: "Eva Prieto Castro" CC: "Uwe Ligge

Re: [R] Graphic window dimensions

2013-04-08 Thread Eva Prieto Castro
ic window dimensions Para: "Eva Prieto Castro" CC: r-help@r-project.org Fecha: domingo, 7 de abril, 2013 17:41 On 07.04.2013 09:53, Eva Prieto Castro wrote: > > Hi Uwe, > > Thank you for your help. Then, how can I know (in runtime) then max > width and height I can use?. If

Re: [R] Graphic window dimensions

2013-04-07 Thread Eva Prieto Castro
from the fact that the result of pdf created must be the same as A4 paper. Regards, Eva --- El dom, 7/4/13, Uwe Ligges escribió: De: Uwe Ligges Asunto: Re: [R] Graphic window dimensions Para: "Eva Prieto Castro" CC: r-help@r-project.org Fecha: domingo, 7 de abril, 2013 01:22 On

[R] Graphic window dimensions

2013-04-06 Thread Eva Prieto Castro
Dear all, I have a doubt: if I run windows(width=8.27, height=11.69), the size of an A4 paper, does it work correctly in all screens? Or does it depend on the inches of my screen?. I ask you about this question because I need to make the user see a graph in the graph window and he must be ab

Re: [R] lm and Formula tutorial

2013-03-06 Thread Eva Prieto Castro
Dear Alex, Here you have some url's: http://data.princeton.edu/R/linearModels.html http://www.r-bloggers.com/r-tutorial-series-simple-linear-regression/ Regards, Eva --- El mié, 6/3/13, Alaios escribió: De: Alaios Asunto: [R] lm and Formula tutorial Para: "R help" Fecha: miércoles, 6 de ma

[R] Help with graphs in A4 size

2013-02-26 Thread Eva Prieto Castro
Hi, I need to generate complex graphics which have to be shown in the plot window but also in pdf file, and they must have A4 size. This is the reason why I use width=8.27 and heigth=11.69. The problem is that I don't make it runs when I put something (text, lines, and so on) outside the plo

Re: [R] Problem with lm

2012-11-05 Thread Eva Prieto Castro
urner escribió: De: Rolf Turner Asunto: Re: [R] Problem with lm Para: "Eva Prieto Castro" CC: "Mick Cooney" , "Greg Snow" <538...@gmail.com>, "William Dunlap" , "r-help@r-project.org" Fecha: lunes, 5 de noviembre, 2012 19:58 On 06/11/12

Re: [R] Problem with lm

2012-11-05 Thread Eva Prieto Castro
Hi, I solved as follws:  f <- formula(y ~ x1 + x2)   single <- do.call("lm", list(f, data=mydf)) It works in every machine!!. Thanks and I'm sorry if I did not answer all your responses about this question. Cheers, Eva --- El vie, 2/11/12, Eva Prieto Castro escri

Re: [R] Problem with lm

2012-11-02 Thread Eva Prieto Castro
yPkt.env$lGlo) 2: RS() 1: MyPkt.RS()    I hope you can put some light in this question, because I am very confused. Thanks in advance.   Cheers, Eva --- El vie, 2/11/12, William Dunlap escribió: De: William Dunlap Asunto: RE: [R] Problem with lm Para: "Eva Prieto Castro"

Re: [R] Problem with lm

2012-11-01 Thread Eva Prieto Castro
tested.   Cheers, Eva --- El jue, 1/11/12, Greg Snow <538...@gmail.com> escribió: De: Greg Snow <538...@gmail.com> Asunto: Re: [R] Problem with lm Para: "Mick Cooney" CC: "Eva Prieto Castro" , r-help@r-project.org Fecha: jueves, 1 de noviembre, 2012 17:49 Th

[R] Problem with lm

2012-11-01 Thread Eva Prieto Castro
Hi, I have a problem in relation with a packahe I made. It runs on my machine (Windows, where I made the package), and it runs in a Mac machine, but it does not run in another Mac machine with the same R version. The part of the code is giving problems: singleCosinor <- function(t, y, period=2

Re: [R] Encoding

2012-10-28 Thread Eva Prieto Castro
Hi Duncan: The problem is that in Windows I can't do the source() with encoding="utf-8", so I don't reach the step of adjusting DESCRIPTION file. Eva --- El dom, 28/10/12, Duncan Murdoch escribió: De: Duncan Murdoch Asunto: Re: [R] Encoding Para: "Eva Pri

Re: [R] Encoding

2012-10-28 Thread Eva Prieto Castro
rieto Castro" CC: r-help@r-project.org Fecha: domingo, 28 de octubre, 2012 12:05 On 12-10-28 3:49 AM, Eva Prieto Castro wrote: > Hi again, Duncan: > > I understand you tell me, but I don't reach it runs in Mac. How must I do?. There is a function in the tools package called sh

Re: [R] Encoding

2012-10-28 Thread Eva Prieto Castro
Hi again, Duncan: I understand you tell me, but I don't reach it runs in Mac. How must I do?. Thanks. Eva --- El sáb, 27/10/12, Duncan Murdoch escribió: De: Duncan Murdoch Asunto: Re: [R] Encoding Para: "Eva Prieto Castro" CC: r-help@r-project.org Fecha: sábado, 27 de octu

Re: [R] Encoding

2012-10-27 Thread Eva Prieto Castro
[1] FALSE $`Latin-1` [1] TRUE $codepage [1] 1252 Thanks. Eva --- El sáb, 27/10/12, Eva Prieto Castro escribió: De: Eva Prieto Castro Asunto: Re: Encoding Para: r-help@r-project.org Fecha: sábado, 27 de octubre, 2012 08:48 Hi, I solved the problem as follows: source(file="example.R&qu

Re: [R] Encoding

2012-10-26 Thread Eva Prieto Castro
Hi, I solved the problem as follows: source(file="example.R", encoding="UCS-2") Thanks Eva --- El sáb, 27/10/12, Eva Prieto Castro escribió: De: Eva Prieto Castro Asunto: Encoding Para: r-help@r-project.org Fecha: sábado, 27 de octubre, 2012 07:34 Hi, I work with R

[R] Encoding

2012-10-26 Thread Eva Prieto Castro
Hi, I work with R on Windows, so I use ANSI encode; but when I run my projects on a linux or mac pc, It fails, so I change the encoding to unicode (in the same mac pc) and runs ok. The problema is that I need tu make the package in mi pc (windows) and when I save my sources as unicode it fails

[R] Gummy Variable : Doubt

2012-09-20 Thread Eva Prieto Castro
Hi,   I have a system in which I analyze 2 subjects and 1 variable, so I have 2 models as follow:   y ~ x_1[, 1] + x_2[, 1] + x_1[, 2] + x_2[, 2]   Where   x_1[, i] = cos(2 * pi * t / T_i) x_2[, i] = sin(2 * pi * t / T_i)   i = 1, 2   Data have two columns: t and y.   As

Re: [R] Dummy Variable : Doubt

2012-09-20 Thread Eva Prieto Castro
Sorry, I could write Dummy and not Gummy. Regards --- El jue, 20/9/12, Eva Prieto Castro escribió: De: Eva Prieto Castro Asunto: Gummy Variable : Doubt Para: R-help@r-project.org Fecha: jueves, 20 de septiembre, 2012 11:13 Hi,   I have a system in which I analyze 2 subjects and 1

[R] Solved!! ( Dummy Variable : Doubt )

2012-09-20 Thread Eva Prieto Castro
Hi, Finally I could resolve. I understood how you can use dummy variables in lm(). Thanks! Eva --- El jue, 20/9/12, Eva Prieto Castro escribió: De: Eva Prieto Castro Asunto: Re: Dummy Variable : Doubt Para: R-help@r-project.org Fecha: jueves, 20 de septiembre, 2012 11:27 Sorry, I could

Re: [R] Doubt in relation with packaging

2012-08-21 Thread Eva Prieto Castro
Thank you, Michael and Rui. I think I will adjust namespaces file. Cheers, Eva --- El mar, 21/8/12, R. Michael Weylandt escribió: De: R. Michael Weylandt Asunto: Re: [R] Doubt in relation with packaging Para: "Rui Barradas" CC: "Eva Prieto Castro" , "r-help"

[R] Doubt in relation with packaging

2012-08-20 Thread Eva Prieto Castro
Hi, As I told you some days ago, finally I could build the package, but I have one doubt: my source code has a lot of functions, but the users only need some of them (the others are auxiliar functions), so there must be a way in order to make invisibel the auxiliar functions. I think I can do

Re: [R] Problem with global variable building a package

2012-08-17 Thread Eva Prieto Castro
Hi, I could build the package, finally, adjusting the path correctly (Rtools folders in front). Regards Eva --- El jue, 16/8/12, Eva Prieto Castro escribió: De: Eva Prieto Castro Asunto: Re: [R] Problem with global variable building a package Para: "Uwe Ligges" CC: "

Re: [R] Problem with global variable building a package

2012-08-16 Thread Eva Prieto Castro
I forget one question: Where do I indicate this path? : PATH=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;c:\MiKTeX\miktex\bin; c:\R\R-2.15\bin\i386;c:\windows;c:\windows\system32 Regards, Eva --- El jue, 16/8/12, Eva Prieto Castro escribió: De: Eva Prieto Castro Asunto: Re: [R] Problem with

Re: [R] Problem with global variable building a package

2012-08-16 Thread Eva Prieto Castro
he package generated will be used under windows and mac. Thanks in advance. Eva --- El mié, 8/8/12, Uwe Ligges escribió: De: Uwe Ligges Asunto: Re: [R] Problem with global variable building a package Para: "Eva Prieto Castro" CC: "Greg Snow" <538...@gmail.com>, R-help@r

Re: [R] Problem with global variable building a package

2012-08-08 Thread Eva Prieto Castro
/12, R. Michael Weylandt escribió: De: R. Michael Weylandt Asunto: Re: [R] Problem with global variable building a package Para: "Eva Prieto Castro" CC: R-help@r-project.org Fecha: martes, 7 de agosto, 2012 20:35 On Tue, Aug 7, 2012 at 2:09 AM, Eva Prieto Castro wrote: > >

Re: [R] Problem with global variable building a package

2012-08-08 Thread Eva Prieto Castro
gmail.com> Asunto: Re: [R] Problem with global variable building a package Para: "Eva Prieto Castro" CC: R-help@r-project.org Fecha: martes, 7 de agosto, 2012 23:30 Probably the best thing to do is create an environment within the package that you can assign to and read from. Somewh

[R] Problem with global variable building a package

2012-08-07 Thread Eva Prieto Castro
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)    Â