Re: [R] how to use # in a rd doc in url address

2009-11-11 Thread Patrick Giraudoux

Patrick Giraudoux a écrit :

Duncan Murdoch a écrit :

On 11/11/2009 12:15 PM, Patrick Giraudoux wrote:
I am writing a rd doc, and need to use "#" in a url adress. This 
would make:


\url{http://www..org/myfolder/#myanchor}


That should work.

Of course, I suppose this will not work because # is a special 
character starting a comment line in the rd dialect. 


That's not correct.  # is only special in R code, and with \url{} the 
text is considered as verbatim text, i.e. only \, %, { and } are 
special.


 I did not found a similar
example in "Writing R exentions". I am not sure bout using \dQuote{a 
quotation}), and use \sQuote and \dQuote correctly. Does anyone know 
how to get the thing right ?


I don't understand this question.



You answered it above... There is no reason for using special 
"quotation" considering your reminder: "with \url{} the text is 
considered as verbatim text"


Thanks for the focus,

Best,

Patrick



Yes, can confirmed it works perfect without any complication... Good 
lesson. Being used to prepare oneself to the worst, one over-anticipates 
it, but occasionally  it does not happen


Cheers,

Patrick

__
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] how to use # in a rd doc in url address

2009-11-11 Thread Patrick Giraudoux

Duncan Murdoch a écrit :

On 11/11/2009 12:15 PM, Patrick Giraudoux wrote:
I am writing a rd doc, and need to use "#" in a url adress. This 
would make:


\url{http://www..org/myfolder/#myanchor}


That should work.

Of course, I suppose this will not work because # is a special 
character starting a comment line in the rd dialect. 


That's not correct.  # is only special in R code, and with \url{} the 
text is considered as verbatim text, i.e. only \, %, { and } are special.


 I did not found a similar
example in "Writing R exentions". I am not sure bout using \dQuote{a 
quotation}), and use \sQuote and \dQuote correctly. Does anyone know 
how to get the thing right ?


I don't understand this question.



You answered it above... There is no reason for using special 
"quotation" considering your reminder: "with \url{} the text is 
considered as verbatim text"


Thanks for the focus,

Best,

Patrick

__
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] how to use # in a rd doc in url address

2009-11-11 Thread Duncan Murdoch

On 11/11/2009 12:15 PM, Patrick Giraudoux wrote:

I am writing a rd doc, and need to use "#" in a url adress. This would make:

\url{http://www..org/myfolder/#myanchor}


That should work.

Of course, I suppose this will not work because # is a special character 
starting a comment line in the rd dialect. 


That's not correct.  # is only special in R code, and with \url{} the 
text is considered as verbatim text, i.e. only \, %, { and } are special.


 I did not found a similar
example in "Writing R exentions". I am not sure bout using \dQuote{a 
quotation}), and use \sQuote and \dQuote correctly. Does anyone know how 
to get the thing right ?


I don't understand this question.

Duncan Murdoch



Patrick

[[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-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] how to use # in a rd doc in url address

2009-11-11 Thread Patrick Giraudoux

Daniel Malter a écrit :

x="\url{http://www..org/myfolder/#myanchor}";
print(x,quote=F)

Does this work for you? 
Daniel



  


I am not working on consol mode (which would make your suggestion 
straight applicable), but writing a rd documentationn (the documentation 
that comes out with the command ?myfunction). The rd file has a Latex 
style syntax and I just want to insert the url within this 
documentation. Eg.


\details{
You may want to connect to \url{http://www..org/myfolder/#myanchor}
}

I am not sure one can define a variable and print it in such context...

Best

Patrick







-
cuncta stricte discussurus
-

-Ursprüngliche Nachricht-
Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im
Auftrag von Patrick Giraudoux
Gesendet: Wednesday, November 11, 2009 12:15 PM
An: r-help@r-project.org
Betreff: [R] how to use # in a rd doc in url address

I am writing a rd doc, and need to use "#" in a url adress. This would make:

\url{http://www..org/myfolder/#myanchor}

Of course, I suppose this will not work because # is a special character
starting a comment line in the rd dialect.  I did not found a similar
example in "Writing R exentions". I am not sure bout using \dQuote{a
quotation}), and use \sQuote and \dQuote correctly. Does anyone know how to
get the thing right ?

Patrick

[[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-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] how to use # in a rd doc in url address

2009-11-11 Thread Daniel Malter
x="\url{http://www..org/myfolder/#myanchor}";
print(x,quote=F)

Does this work for you? 
Daniel


-
cuncta stricte discussurus
-

-Ursprüngliche Nachricht-
Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im
Auftrag von Patrick Giraudoux
Gesendet: Wednesday, November 11, 2009 12:15 PM
An: r-help@r-project.org
Betreff: [R] how to use # in a rd doc in url address

I am writing a rd doc, and need to use "#" in a url adress. This would make:

\url{http://www..org/myfolder/#myanchor}

Of course, I suppose this will not work because # is a special character
starting a comment line in the rd dialect.  I did not found a similar
example in "Writing R exentions". I am not sure bout using \dQuote{a
quotation}), and use \sQuote and \dQuote correctly. Does anyone know how to
get the thing right ?

Patrick

[[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-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] how to use # in a rd doc in url address

2009-11-11 Thread Patrick Giraudoux
I am writing a rd doc, and need to use "#" in a url adress. This would make:

\url{http://www..org/myfolder/#myanchor}

Of course, I suppose this will not work because # is a special character 
starting a comment line in the rd dialect.  I did not found a similar 
example in "Writing R exentions". I am not sure bout using \dQuote{a 
quotation}), and use \sQuote and \dQuote correctly. Does anyone know how 
to get the thing right ?

Patrick

[[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.