Re: [R] Using RCMD INSTALL under Spanish version of windows.

2014-07-07 Thread Jan Graffelman

Here is a solution for the posted problem.

Under the Spanish version of Windows 7, inside Windows Explorer, the 
directory where R is installed appears as


C:\Archivos de programa\R\R-3.1.0\bin\x64

If you wish to compile a personal libary, this suggests you should 
extend the search path by changing the environmental
variable PATH to Path=C:\Archivos de 
programa\R\R-3.1.0\bin\x64;C:\windows;C:etc..


However, the real name of the directory is not "Archivos de programa" 
but "Program files", this will become evident if

you open a DOS window on C:\

So if you change the environmental variable PATH to Path=C:\Program 
files\R\R-3.1.0\bin\x64;C:\windows;C:etc..


then the problem is over and RCMD INSTALL MyPackages installs MyPackages 
without the error message


In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="c:/ARCHIV~1/R/R-31~1.0/library": Acceso denegado

Jan.

On 02/07/2014 0:12, Jan Graffelman wrote:
Using RCMD INSTALL with R-version 3.1.0 under a Spanish Windows 7 
gives the following error message:


rcmd INSTALL MyPackages
Mensajes de aviso perdidos
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="c:/ARCHIV~1/R/R-31~1.0/library": Acceso denegado C
Mensajes de aviso perdidos
package "methods" in options("defaultPackages") was not found
Durante la inicialización - Mensajes de aviso perdidos
1: package 'datasets' in options("defaultPackages") was not found
2: package 'utils' in options("defaultPackages") was not found
3: package 'grDevices' in options("defaultPackages") was not found
4: package 'graphics' in options("defaultPackages") was not found
5: package 'stats' in options("defaultPackages") was not found
6: package 'methods' in options("defaultPackages") was not found
Error en normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="c:/ARCHIV~1/R/R-31~1.0/library/tools": Acceso denegado
Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> 
Ejecución interrumpida

The user running this command has all permissions to modify the
directory C:\Program Files\R\R-3.1.0\library, as is also clear from the
fact that installing a package by install.packages() works.

Any suggestions are welcome.

Jan.




--
Jan Graffelman
Dpt. of Statistics and Operations Research
Universitat Politècnica de Catalunya
Av. Diagonal 647, 6th floor
08028 Barcelona, Spain
email: jan.graffel...@upc.edu
web: http://www-eio.upc.es/~jan
tel: +34-93-4011739
fax: +34-93-4016575

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Using RCMD INSTALL under Spanish version of windows.

2014-07-01 Thread Jan Graffelman
Using RCMD INSTALL with R-version 3.1.0 under a Spanish Windows 7 gives 
the following error message:


rcmd INSTALL MyPackages
Mensajes de aviso perdidos
In normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="c:/ARCHIV~1/R/R-31~1.0/library": Acceso denegado
Mensajes de aviso perdidos
package "methods" in options("defaultPackages") was not found
Durante la inicialización - Mensajes de aviso perdidos
1: package 'datasets' in options("defaultPackages") was not found
2: package 'utils' in options("defaultPackages") was not found
3: package 'grDevices' in options("defaultPackages") was not found
4: package 'graphics' in options("defaultPackages") was not found
5: package 'stats' in options("defaultPackages") was not found
6: package 'methods' in options("defaultPackages") was not found
Error en normalizePath(path.expand(path), winslash, mustWork) :
  path[1]="c:/ARCHIV~1/R/R-31~1.0/library/tools": Acceso denegado
Calls: ::: ... tryCatch -> tryCatchList -> tryCatchOne -> 
Ejecución interrumpida

The user running this command has all permissions to modify the
directory C:\Program Files\R\R-3.1.0\library, as is also clear from the
fact that installing a package by install.packages() works.

Any suggestions are welcome.

Jan.

--
Jan Graffelman
Dpt. of Statistics and Operations Research
Universitat Politècnica de Catalunya
Av. Diagonal 647, 6th floor
08028 Barcelona, Spain
email: jan.graffel...@upc.edu
web: http://www-eio.upc.es/~jan
tel: +34-93-4011739
fax: +34-93-4016575

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] producing biplot of canonical correlation analysis

2010-07-19 Thread jan . graffelman

Dear Elaine,

The calibrate package contains a routine for canonical correlation
analysis called "canocor". Section 4.3 of the documentation vignette
of the package shows how to make biplots for canonical correlation
analysis.

Hope this helps,

Best regards,

Jan Graffelman.

Message: 13
Date: Sun, 18 Jul 2010 22:17:27 +0800
From: elaine kuo 
To: r-help@r-project.org
Subject: [R] producing biplot of canonical correlation analysis
Message-ID:

Content-Type: text/plain

Dear List,

I would like to obtain biplot containing arrows and variable labels.
However, after checking the previous message and package CCA and function
anacor,
my attempt remains an open question.

Please kindly advise code or package I might miss to achieve it.

Thank you.

Elaine

[[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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Writing a new link for a GLM.

2008-06-13 Thread Jan Graffelman

Hi,

I wish to write a new link function for a GLM. R's glm routine does
not supply the "loglog" link. I modified the make.link function adding
the code:

}, loglog = {
linkfun <- function(mu) -log(-log(mu))
linkinv <- function(eta) exp(-exp(-eta))
mu.eta <- function(eta) exp(-exp(-eta)-eta)
valideta <- function(eta) all(eta != 0)
}, stop(sQuote(link), " link not recognised"))
structure(list(linkfun = linkfun, linkinv = linkinv, mu.eta = mu.eta,
valideta = valideta, name = link), class = "link-glm")
}


and then call glm with argument

glm(y~x1+x2+x3,family=binomial(link=make.link("loglog")),data=X)

and that seems to work.

Is this the way to include a new link function? Any other suggestions?

Jan.

--
--------
|Jan Graffelman  |tel:   +34-93-4011739|
|Dpt. of Statistics & Operations Research|fax:   +34-93-4016575|
|Universitat Politecnica de Catalunya|email: [EMAIL PROTECTED]|
|Av. Diagonal 647, 6th floor |www: |
|08028 Barcelona, Spain  |  http://www-eio.upc.es/~jan/|

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] Upload HardyWeinberg package (1.1)

2008-04-21 Thread Jan Graffelman
Hi all,

I've uploaded to CRAN a new version of the HardyWeinberg package. This
package has routines for performing graphical significance tests (based 
on the ternary plot) for Hardy-Weinberg equilibrium of bi-allelic marker 
  data.

Jan.

-- 
----
|Jan Graffelman  |tel:   +34-93-4011739|
|Dpt. of Statistics & Operations Research|fax:   +34-93-4016575|
|Universitat Politecnica de Catalunya|email: [EMAIL PROTECTED]|
|Av. Diagonal 647, 6th floor |www: |
|08028 Barcelona, Spain  |  http://www-eio.upc.es/~jan/|

___
R-packages mailing list
[EMAIL PROTECTED]
https://stat.ethz.ch/mailman/listinfo/r-packages

__
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.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.