[Rd] carol white

2013-06-17 Thread carol white
ttpo 
http://www.jumperlearningcenter.com/jzbyai/RNDCHR,3,15%/mtojraunf/cefetuybojqjp/nzpyrhzjxmclm.htm




xmpf 
[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Fw: problem reported in 00check.log-package not found-cont.

2011-01-13 Thread carol white
Yes, the packages are already installed and their path is given correctly

I have noticed that if I run the R version lower (  2.10.0) than the version 
with which the packages were installed (2.10.0) I don't get such error message. 
But if I run the equal or greater version (= 2.10.0), I get the error message:
 
content of 00check.log file

* install options are ' --no-html'

* installing *source* package ‘my_package’ ...
** R
** preparing package for lazy loading
Loading required package: splines
Warning in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = 
lib.loc) :
  there is no package called 'prodlim'
Error : package 'prodlim' could not be loaded
ERROR: lazy loading failed for package ‘my_package’




- Original Message 
From: Prof Brian Ripley rip...@stats.ox.ac.uk
To: carol white wht_...@yahoo.com
Cc: r-devel@r-project.org
Sent: Thu, January 13, 2011 11:24:47 AM
Subject: Re: [Rd] Fw:  problem reported in 00check.log-package not found-cont.

We simply don't have a reproducible example, nor the 'at a minimum' 
information required by the posting guide.

Is prodlim installed?

Is it in the library tree you set as R_LIBS?

Note the following from 'Writing R Extensions':

   Note: R CMD check and R CMD build run R with --vanilla, so none of the
   user's startup files are read. If you need R_LIBS set (to find
   packages in a non-standard library) you can set it in the environment:
   also as from R 2.12.0 you can use files ~/.R/check.Renviron and
   ~/.R/build.Renviron to set environment variables when using these
   utilities.

and we've seen non-reproucible reports that use of ~/.R/check.Renviron 
(rather than setting R_LIBS in the environment) was needed.  So please 
try that.

On Thu, 13 Jan 2011, carol white wrote:

 Sorry, forgot to specified that I get this message error when running

 R CMD check my_pkg_name



 - Forwarded Message 
 From: carol white wht_...@yahoo.com
 To: r-devel@r-project.org
 Sent: Wed, January 12, 2011 10:08:13 PM
 Subject: [Rd] problem reported in 00check.log-package not found

 I set

 setenv R_LIBS path_to_local_Rpackages

 still I get the error message that a package not found

 Warning in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc 
=
 lib.loc) :
  there is no package called 'prodlim'
 Error : package 'prodlim' could not be loaded
 ERROR: lazy loading failed for package ‘prodlim’

 What can be done?

 Carol




 __
 R-devel@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-devel





 __
 R-devel@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-devel


-- 
Brian D. Ripley,  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595




__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] problem reported in 00check.log-package not found

2011-01-12 Thread carol white
I set 

setenv R_LIBS path_to_local_Rpackages

still I get the error message that a package not found

Warning in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = 
lib.loc) :
  there is no package called 'prodlim'
Error : package 'prodlim' could not be loaded
ERROR: lazy loading failed for package ‘prodlim’

What can be done?

Carol




__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error in generating sweave-tex - pdf file

2010-12-23 Thread carol white
When I copied Sweave.sty in the directory where I ran R, I didn't have any 
error. But this is not the good solution as R can be run in any folder.

I copied Sweave.sty in  /usr/share/texmf/. I put my Rnw file in inst/doc folder 
in my R package to create the vignette. I ran R CMD check and it doesn find 
texi2dvi.



- Original Message 
From: Duncan Murdoch murdoch.dun...@gmail.com
To: carol white wht_...@yahoo.com
Cc: r-devel@r-project.org
Sent: Wed, December 22, 2010 10:33:01 PM
Subject: Re: [Rd] Error in generating sweave-tex - pdf file

On 22/12/2010 1:30 PM, carol white wrote:
 Should the Sweave package be in /usr/share/texmf/tex/latex/? How about
 Sweave.sty?

I meant Sweave.sty, there's no separate Sweave package.  It should be in 
the R home directory, somewhere within share/texmf.

Duncan Murdoch

 Thanks



 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 6:42:07 PM
 Subject: Re: [Rd] Error in generating sweave-tex -  pdf file

 On 22/12/2010 12:27 PM, carol white wrote:
   Hi,
   I created a Sweave file (see below). when I want to convert tex
   file generated from it into pdf, I get error message as follows:
 
  texi2dvi(test.tex, pdf=TRUE)
   Error in texi2dvi(test.tex, pdf = TRUE) :
  Running 'texi2dvi' on 'test.tex' failed.
   LaTeX errors:
   ! Undefined control sequence.
   l.8 \begin
  {Schunk}

 The Schunk, Sinput, and Soutput environments are defined in Sweave package.
 Something went wrong and latex didn't find them, either because it didn't find
 Sweave.sty, or because it did, but that file has been messed up.


   ?
   ! Interruption.
   ! Interruption.
   to be read again
   {
   l.8 \begin{
   Schunk}
   ! Undefined control sequence.
   l.9 \begin
  {Sinput}
   The control sequence at the end of the top line
   of your error message was never \def'ed. If you have
   
   test.Rnw
 
   \usepackage{Sweave}
   \ documentclass [ a4paper ]{ article }
   \ title { Sweave Example 1}
   \ begin { document }
   \ maketitle

 Are there really spaces between the backslashes and the macros?  I think that
 doesn't work.  You should also have the \usepackage{Sweave} line after the
 opening \documentclass line.

 Duncan Murdoch

   In this example we embed parts of the examples from the
   help page into a \ LaTeX {} document :
   a=
   y=2
   y = y +1
   @
   which shows that the location parameter of the Ozone
   distribution varies significantly from month to month . Finally we
   include a boxplot of the data :
 
   \end{ document }
 
   __
   R-devel@r-project.org mailing list
   https://stat.ethz.ch/mailman/listinfo/r-devel




__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error in generating sweave-tex - pdf file-cont.

2010-12-23 Thread carol white
I also copied Sweave.sty in the directory of my Rnw file (according to 
http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html) but texi2dvi not found 
when I ran R CMD check. I also found this solution inconvenient because if one 
develops different R packages, he shouldn't copy the Sweave.sty in all 
directores containing Rnw file. 




- Original Message 
From: Duncan Murdoch murdoch.dun...@gmail.com
To: carol white wht_...@yahoo.com
Cc: r-devel@r-project.org
Sent: Wed, December 22, 2010 10:33:01 PM
Subject: Re: [Rd] Error in generating sweave-tex - pdf file

On 22/12/2010 1:30 PM, carol white wrote:
 Should the Sweave package be in /usr/share/texmf/tex/latex/? How about
 Sweave.sty?

I meant Sweave.sty, there's no separate Sweave package.  It should be in 
the R home directory, somewhere within share/texmf.

Duncan Murdoch

 Thanks



 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 6:42:07 PM
 Subject: Re: [Rd] Error in generating sweave-tex -  pdf file

 On 22/12/2010 12:27 PM, carol white wrote:
   Hi,
   I created a Sweave file (see below). when I want to convert tex
   file generated from it into pdf, I get error message as follows:
 
  texi2dvi(test.tex, pdf=TRUE)
   Error in texi2dvi(test.tex, pdf = TRUE) :
  Running 'texi2dvi' on 'test.tex' failed.
   LaTeX errors:
   ! Undefined control sequence.
   l.8 \begin
  {Schunk}

 The Schunk, Sinput, and Soutput environments are defined in Sweave package.
 Something went wrong and latex didn't find them, either because it didn't find
 Sweave.sty, or because it did, but that file has been messed up.


   ?
   ! Interruption.
   ! Interruption.
   to be read again
   {
   l.8 \begin{
   Schunk}
   ! Undefined control sequence.
   l.9 \begin
  {Sinput}
   The control sequence at the end of the top line
   of your error message was never \def'ed. If you have
   
   test.Rnw
 
   \usepackage{Sweave}
   \ documentclass [ a4paper ]{ article }
   \ title { Sweave Example 1}
   \ begin { document }
   \ maketitle

 Are there really spaces between the backslashes and the macros?  I think that
 doesn't work.  You should also have the \usepackage{Sweave} line after the
 opening \documentclass line.

 Duncan Murdoch

   In this example we embed parts of the examples from the
   help page into a \ LaTeX {} document :
   a=
   y=2
   y = y +1
   @
   which shows that the location parameter of the Ozone
   distribution varies significantly from month to month . Finally we
   include a boxplot of the data :
 
   \end{ document }
 
   __
   R-devel@r-project.org mailing list
   https://stat.ethz.ch/mailman/listinfo/r-devel




__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error in generating sweave-tex - pdf file

2010-12-23 Thread carol white
R installation and admin manual doesn't tell where to save Sweave.sty. 

I use R 2.10.0, fedora 10 and, tex  Version 3.141592-1.40.3 (Web2C 7.5.6)

Cheers,



- Original Message 
From: Duncan Murdoch murdoch.dun...@gmail.com
To: carol white wht_...@yahoo.com
Cc: r-devel@r-project.org
Sent: Thu, December 23, 2010 1:21:14 PM
Subject: Re: [Rd] Error in generating sweave-tex - pdf file

On 23/12/2010 5:26 AM, carol white wrote:
 When I copied Sweave.sty in the directory where I ran R, I didn't have any
 error. But this is not the good solution as R can be run in any folder.

 I copied Sweave.sty in  /usr/share/texmf/. I put my Rnw file in inst/doc 
folder
 in my R package to create the vignette. I ran R CMD check and it doesn find
 texi2dvi.

texi2dvi is both a function name in R (in the tools package) and a GNU 
utility that comes with texinfo and some TeX distributions, but 
apparently not with yours.  See the R Installation and Administration 
manual for suggestions on where to get it.  If that doesn't help, you 
might get help on this list by stating the versions of everything you're 
using: R, your OS, and TeX.

Duncan Murdoch




 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 10:33:01 PM
 Subject: Re: [Rd] Error in generating sweave-tex -  pdf file

 On 22/12/2010 1:30 PM, carol white wrote:
 Should the Sweave package be in /usr/share/texmf/tex/latex/? How about
 Sweave.sty?

 I meant Sweave.sty, there's no separate Sweave package.  It should be in
 the R home directory, somewhere within share/texmf.

 Duncan Murdoch

 Thanks



 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 6:42:07 PM
 Subject: Re: [Rd] Error in generating sweave-tex -   pdf file

 On 22/12/2010 12:27 PM, carol white wrote:
   Hi,
   I created a Sweave file (see below). when I want to convert tex
   file generated from it into pdf, I get error message as follows:

   texi2dvi(test.tex, pdf=TRUE)
   Error in texi2dvi(test.tex, pdf = TRUE) :
  Running 'texi2dvi' on 'test.tex' failed.
   LaTeX errors:
   ! Undefined control sequence.
   l.8 \begin
  {Schunk}

 The Schunk, Sinput, and Soutput environments are defined in Sweave package.
 Something went wrong and latex didn't find them, either because it didn't 
find
 Sweave.sty, or because it did, but that file has been messed up.


   ?
   ! Interruption.
   ! Interruption.
   to be read again
   {
   l.8 \begin{
   Schunk}
   ! Undefined control sequence.
   l.9 \begin
  {Sinput}
   The control sequence at the end of the top line
   of your error message was never \def'ed. If you have
   
   test.Rnw

   \usepackage{Sweave}
   \ documentclass [ a4paper ]{ article }
   \ title { Sweave Example 1}
   \ begin { document }
   \ maketitle

 Are there really spaces between the backslashes and the macros?  I think that
 doesn't work.  You should also have the \usepackage{Sweave} line after the
 opening \documentclass line.

 Duncan Murdoch

   In this example we embed parts of the examples from the
   help page into a \ LaTeX {} document :
   a=
   y=2
   y = y +1
   @
   which shows that the location parameter of the Ozone
   distribution varies significantly from month to month . Finally we
   include a boxplot of the data :

   \end{ document }

   __
  R-devel@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-devel







__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error in generating sweave-tex - pdf file

2010-12-23 Thread carol white
Another question that I have is the following:

If I want to create the package vignette on a server for which I don't have 
admin rights to install Sweave.sty, where is the best place to save this file 
if 
I want to run from anywhere in my home directoy or do I have to put this file 
in 
a directory where I should always run from there?

I also attach Sweave.sty to check if it the right file.




- Original Message 
From: Duncan Murdoch murdoch.dun...@gmail.com
To: carol white wht_...@yahoo.com
Cc: r-devel@r-project.org
Sent: Thu, December 23, 2010 2:01:26 PM
Subject: Re: [Rd] Error in generating sweave-tex - pdf file

On 23/12/2010 7:46 AM, carol white wrote:
 R installation and admin manual doesn't tell where to save Sweave.sty.

You shouldn't need to move it.


 I use R 2.10.0, fedora 10 and, tex  Version 3.141592-1.40.3 (Web2C 7.5.6)

That R is pretty old.  I wouldn't be surprised if the current release 
handled things better.  But the thing that appears to be missing on your 
system is texinfo, and that's not part of R.

Duncan Murdoch


 Cheers,



 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Thu, December 23, 2010 1:21:14 PM
 Subject: Re: [Rd] Error in generating sweave-tex -  pdf file

 On 23/12/2010 5:26 AM, carol white wrote:
 When I copied Sweave.sty in the directory where I ran R, I didn't have any
 error. But this is not the good solution as R can be run in any folder.

 I copied Sweave.sty in  /usr/share/texmf/. I put my Rnw file in inst/doc
 folder
 in my R package to create the vignette. I ran R CMD check and it doesn find
 texi2dvi.

 texi2dvi is both a function name in R (in the tools package) and a GNU
 utility that comes with texinfo and some TeX distributions, but
 apparently not with yours.  See the R Installation and Administration
 manual for suggestions on where to get it.  If that doesn't help, you
 might get help on this list by stating the versions of everything you're
 using: R, your OS, and TeX.

 Duncan Murdoch




 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 10:33:01 PM
 Subject: Re: [Rd] Error in generating sweave-tex -   pdf file

 On 22/12/2010 1:30 PM, carol white wrote:
 Should the Sweave package be in /usr/share/texmf/tex/latex/? How about
 Sweave.sty?

 I meant Sweave.sty, there's no separate Sweave package.  It should be in
 the R home directory, somewhere within share/texmf.

 Duncan Murdoch

 Thanks



 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 6:42:07 PM
 Subject: Re: [Rd] Error in generating sweave-tex -pdf file

 On 22/12/2010 12:27 PM, carol white wrote:
Hi,
I created a Sweave file (see below). when I want to convert tex
file generated from it into pdf, I get error message as follows:

 texi2dvi(test.tex, pdf=TRUE)
Error in texi2dvi(test.tex, pdf = TRUE) :
   Running 'texi2dvi' on 'test.tex' failed.
LaTeX errors:
! Undefined control sequence.
l.8 \begin
   {Schunk}

 The Schunk, Sinput, and Soutput environments are defined in Sweave package.
 Something went wrong and latex didn't find them, either because it didn't
 find
 Sweave.sty, or because it did, but that file has been messed up.


?
! Interruption.
! Interruption.
to be read again
{
l.8 \begin{
Schunk}
! Undefined control sequence.
l.9 \begin
   {Sinput}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have

test.Rnw

\usepackage{Sweave}
\ documentclass [ a4paper ]{ article }
\ title { Sweave Example 1}
\ begin { document }
\ maketitle

 Are there really spaces between the backslashes and the macros?  I think 
that
 doesn't work.  You should also have the \usepackage{Sweave} line after the
 opening \documentclass line.

 Duncan Murdoch

In this example we embed parts of the examples from the
help page into a \ LaTeX {} document :
a=
y=2
y = y +1
@
which shows that the location parameter of the Ozone
distribution varies significantly from month to month . Finally we
include a boxplot of the data :

\end{ document }

__
  R-devel@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-devel











  __
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error in generating sweave-tex - pdf file

2010-12-23 Thread carol white
Thanks for all replies.

I found Sweave.sty in the system files of my local machine. It was sitting in 
/usr/share/R/texmf/. The content is the same as the file sent previously. So 
the 
file has always been in the system but R has been unable to find it.

I put the sty file in the home directory, in the folder where the Rnw file is, 
used \usepackage{/usr/share/R/texmf/Sweave.sty},
set SWEAVE_STYLEPATH_DEFAUL = TRUE, 

still with R CMD check, texi2dvi can't be found.

Recall that before I started to create the package vignette, I could generated 
the pdf file of the tex file by invoking texi2dvi in an R session after loading 
library(tools).

Best,

Carol


- Original Message 
From: Kasper Daniel Hansen kasperdanielhan...@gmail.com
To: carol white wht_...@yahoo.com
Cc: Duncan Murdoch murdoch.dun...@gmail.com; r-devel@r-project.org
Sent: Thu, December 23, 2010 5:13:58 PM
Subject: Re: [Rd] Error in generating sweave-tex - pdf file

Hi Carol

As you now know, this is because per default R/Sweave puts the line
  \usepackage{Sweave}
in the generated tex file.  This means the tex file is portable, but
it also implies that Sweave.sty needs to be installed in your tex
installation.  Or you can put the Sweave.sty in the directory of the
Rnw file since tex usually is set up to search the same directory.

An alternative is to get R to generate a line like
  \usepackage{FULL_PATH_TO_SWEAVE.STY}
in the tex document.  This implies that the tex file can only be
tex'ed on a setup where the Sweave.sty is at the same place - hence it
kind of break portability.  Now portability of the tex file does not
matter to many users - most of us think of the tex file as an
intermediate file and only care about the Rnw file and the final PDF.
You get this behaviour by setting the environment variable
  SWEAVE_STYLEPATH_DEFAULT
to
  TRUE
An easy way to do this is to include the following line in your .Rprofile
Sys.setenv(SWEAVE_STYLEPATH_DEFAULT = TRUE)

This trick also fixes running Sweave on a system where you do not have
admin rights.

Kasper

On Thu, Dec 23, 2010 at 5:14 AM, carol white wht_...@yahoo.com wrote:
 Another question that I have is the following:

 If I want to create the package vignette on a server for which I don't have
 admin rights to install Sweave.sty, where is the best place to save this file 
if
 I want to run from anywhere in my home directoy or do I have to put this file 
in
 a directory where I should always run from there?

 I also attach Sweave.sty to check if it the right file.




 - Original Message 
 From: Duncan Murdoch murdoch.dun...@gmail.com
 To: carol white wht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Thu, December 23, 2010 2:01:26 PM
 Subject: Re: [Rd] Error in generating sweave-tex - pdf file

 On 23/12/2010 7:46 AM, carol white wrote:
 R installation and admin manual doesn't tell where to save Sweave.sty.

 You shouldn't need to move it.


 I use R 2.10.0, fedora 10 and, tex  Version 3.141592-1.40.3 (Web2C 7.5.6)

 That R is pretty old.  I wouldn't be surprised if the current release
 handled things better.  But the thing that appears to be missing on your
 system is texinfo, and that's not part of R.

 Duncan Murdoch


 Cheers,



 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Thu, December 23, 2010 1:21:14 PM
 Subject: Re: [Rd] Error in generating sweave-tex -  pdf file

 On 23/12/2010 5:26 AM, carol white wrote:
 When I copied Sweave.sty in the directory where I ran R, I didn't have any
 error. But this is not the good solution as R can be run in any folder.

 I copied Sweave.sty in  /usr/share/texmf/. I put my Rnw file in inst/doc
 folder
 in my R package to create the vignette. I ran R CMD check and it doesn find
 texi2dvi.

 texi2dvi is both a function name in R (in the tools package) and a GNU
 utility that comes with texinfo and some TeX distributions, but
 apparently not with yours.  See the R Installation and Administration
 manual for suggestions on where to get it.  If that doesn't help, you
 might get help on this list by stating the versions of everything you're
 using: R, your OS, and TeX.

 Duncan Murdoch




 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 10:33:01 PM
 Subject: Re: [Rd] Error in generating sweave-tex -   pdf file

 On 22/12/2010 1:30 PM, carol white wrote:
 Should the Sweave package be in /usr/share/texmf/tex/latex/? How about
 Sweave.sty?

 I meant Sweave.sty, there's no separate Sweave package.  It should be in
 the R home directory, somewhere within share/texmf.

 Duncan Murdoch

 Thanks



 - Original Message 
 From: Duncan Murdochmurdoch.dun...@gmail.com
 To: carol whitewht_...@yahoo.com
 Cc: r-devel@r-project.org
 Sent: Wed, December 22, 2010 6:42:07 PM
 Subject: Re: [Rd] Error in generating sweave-tex -pdf

[Rd] Error in generating sweave-tex - pdf file

2010-12-22 Thread carol white
Hi,
I created a Sweave file (see below). when I want to convert tex 
file generated from it into pdf, I get error message as follows:

 texi2dvi(test.tex, pdf=TRUE)
Error in texi2dvi(test.tex, pdf = TRUE) : 
  Running 'texi2dvi' on 'test.tex' failed.
LaTeX errors:
! Undefined control sequence.
l.8 \begin
  {Schunk}
? 
! Interruption.
! Interruption.
to be read again 
   {
l.8 \begin{
   Schunk}
! Undefined control sequence.
l.9 \begin
  {Sinput}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have

test.Rnw

\usepackage{Sweave}
\ documentclass [ a4paper ]{ article }
\ title { Sweave Example 1}
\ begin { document }
\ maketitle
In this example we embed parts of the examples from the
help page into a \ LaTeX {} document :
a=
y=2
y = y +1
@
which shows that the location parameter of the Ozone
distribution varies significantly from month to month . Finally we
include a boxplot of the data :

\end{ document }

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error in generating sweave-tex - pdf file

2010-12-22 Thread carol white
Should the Sweave package be in /usr/share/texmf/tex/latex/? How about 
Sweave.sty?

Thanks



- Original Message 
From: Duncan Murdoch murdoch.dun...@gmail.com
To: carol white wht_...@yahoo.com
Cc: r-devel@r-project.org
Sent: Wed, December 22, 2010 6:42:07 PM
Subject: Re: [Rd] Error in generating sweave-tex - pdf file

On 22/12/2010 12:27 PM, carol white wrote:
 Hi,
 I created a Sweave file (see below). when I want to convert tex
 file generated from it into pdf, I get error message as follows:
 
   texi2dvi(test.tex, pdf=TRUE)
 Error in texi2dvi(test.tex, pdf = TRUE) :
Running 'texi2dvi' on 'test.tex' failed.
 LaTeX errors:
 ! Undefined control sequence.
 l.8 \begin
{Schunk}

The Schunk, Sinput, and Soutput environments are defined in Sweave package.  
Something went wrong and latex didn't find them, either because it didn't find 
Sweave.sty, or because it did, but that file has been messed up.


 ?
 ! Interruption.
 ! Interruption.
 to be read again
 {
 l.8 \begin{
 Schunk}
 ! Undefined control sequence.
 l.9 \begin
{Sinput}
 The control sequence at the end of the top line
 of your error message was never \def'ed. If you have
 
 test.Rnw
 
 \usepackage{Sweave}
 \ documentclass [ a4paper ]{ article }
 \ title { Sweave Example 1}
 \ begin { document }
 \ maketitle

Are there really spaces between the backslashes and the macros?  I think that 
doesn't work.  You should also have the \usepackage{Sweave} line after the 
opening \documentclass line.

Duncan Murdoch

 In this example we embed parts of the examples from the
 help page into a \ LaTeX {} document :
 a=
 y=2
 y = y +1
 @
 which shows that the location parameter of the Ozone
 distribution varies significantly from month to month . Finally we
 include a boxplot of the data :
 
 \end{ document }
 
 __
 R-devel@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] some problems reported in 00check.log

2010-09-23 Thread carol white
True. A markup command won't be enough to do the job. A function is needed to 
count the character number (based on the font and size) and if it is greater 
than the width of the page (based on A4 format or US letter), it will split the 
line.

Now another question regarding the code in the \examples field: how to keep the 
same format as the source code because all lines start vertically at the same 
position? for ex, if I have tab set manually in the source code, it is ignored 
in the pdf manual file. Do I have to use \tab? How about html help page?

I have noticed that there is one file 00Index.html in html folder. I didn't 
have any error message when I ran R CMD check and build. But it seems that 
other html files missing. How to repair?

when I ran R CMD check, the pdf manual file was created in one level up the 
package folder. I moved it to help folder. How to set options so that  it will 
be created in the help folder? 

thanks,

--- On Wed, 9/22/10, Prof Brian Ripley rip...@stats.ox.ac.uk wrote:

 From: Prof Brian Ripley rip...@stats.ox.ac.uk
 Subject: Re: [Rd] some problems reported in 00check.log
 To: carol white wht_...@yahoo.com
 Cc: Uwe Ligges lig...@statistik.tu-dortmund.de, r-devel@r-project.org
 Date: Wednesday, September 22, 2010, 5:04 AM
 On Wed, 22 Sep 2010, carol white
 wrote:
 
  So there is no sort of automatic way like using a
 markup command for the susceptible fields instead of
 splitting manually a line on different lines?
 
 Well, how is the automatic command to know how to do
 this?  As you 
 will see from the autmatic wrapping in e.g. deparse(), we
 are not able 
 to do a very good job.
 
 There has been some talk about doing this automatically as
 a backstop, 
 but I don't know the current state: in any case it does not
 happen in 
 released versions of R.
 
  True that this doesn't happen in Arguments field (I
 confused with 
  Format field).
 
  Also true that the codes used in Usage, Examples etc
 are in 
  courrier. Is there any way to reduce the size and not
 to change the 
  font of character for these fields?
 
 You can change Rd.sty, which already contains options for
 using 
 other fontsets.
 
 
  Best,
 
  Carol
 
  --- On Wed, 9/22/10, Prof Brian Ripley rip...@stats.ox.ac.uk
 wrote:
 
  From: Prof Brian Ripley rip...@stats.ox.ac.uk
  Subject: Re: [Rd] some problems reported in
 00check.log
  To: carol white wht_...@yahoo.com
  Cc: Uwe Ligges lig...@statistik.tu-dortmund.de,
 r-devel@r-project.org
  Date: Wednesday, September 22, 2010, 2:15 AM
  On Wed, 22 Sep 2010, carol white
  wrote:
 
  Thank you very much Uwe. It works now.
 
  I have a question about pdf formating in pdf
 manual
  file:
 
  How to format the long lines which go to the
 margin?
  For ex, this happens in Usage field if a function
 has many
  arguments. Also, it happens in examples or
 Arugment sections
  when the lines are long.
 
  Correct the sources by re-formatting over-long
 lines
  yourself.  (This should only happen in
 verbatim-like
  sections, hence unlikely to happen in
 \argument{}.)
 
  One of the things we suggest when checking a
 package is to
  read through the PDF manual, and this is one of
 the problems
  to look out for.  (Note that it does depend on
 the
  fonts used for the PDF, but the default Courier
 for
  monospaced text is somewhat wide.)
 
  -- Brian D. Ripley,         
          rip...@stats.ox.ac.uk
  Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
  University of Oxford,         
     Tel:  +44 1865 272861 (self)
  1 South Parks Road,         
             +44 1865
  272866 (PA)
  Oxford OX1 3TG, UK           
      Fax:  +44 1865 272595
 
 
 
 
 
 
 -- 
 Brian D. Ripley,           
       rip...@stats.ox.ac.uk
 Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
 University of Oxford,         
    Tel:  +44 1865 272861 (self)
 1 South Parks Road,         
            +44 1865
 272866 (PA)
 Oxford OX1 3TG, UK           
     Fax:  +44 1865 272595




__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] some problems reported in 00check.log

2010-09-23 Thread carol white
I used the 2.10.0 version

--- On Thu, 9/23/10, Uwe Ligges lig...@statistik.tu-dortmund.de wrote:

 From: Uwe Ligges lig...@statistik.tu-dortmund.de
 Subject: Re: [Rd] some problems reported in 00check.log
 To: carol white wht_...@yahoo.com
 Cc: Prof Brian Ripley rip...@stats.ox.ac.uk, r-devel@r-project.org
 Date: Thursday, September 23, 2010, 4:57 AM

 
 If this is R  2.10.0, it is expected. Static html files
 are not 
 generated upon installation any more. Contents is generated
 dynamically 
 upon request now.


__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] some problems reported in 00check.log

2010-09-22 Thread carol white
Thank you very much Uwe. It works now.

I have a question about pdf formating in pdf manual file: 

How to format the long lines which go to the margin? For ex, this happens in 
Usage field if a function has many arguments. Also, it happens in examples or 
Arugment sections when the lines are long.

Best,

Carol

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] some problems reported in 00check.log

2010-09-22 Thread carol white
So there is no sort of automatic way like using a markup command for the 
susceptible fields instead of splitting manually a line on different lines? 

True that this doesn't happen in Arguments field (I confused with Format 
field). 

Also true that the codes used in Usage, Examples etc are in courrier. Is there 
any way to reduce the size and not to change the font of character for these 
fields? 

Best,

Carol

--- On Wed, 9/22/10, Prof Brian Ripley rip...@stats.ox.ac.uk wrote:

 From: Prof Brian Ripley rip...@stats.ox.ac.uk
 Subject: Re: [Rd] some problems reported in 00check.log
 To: carol white wht_...@yahoo.com
 Cc: Uwe Ligges lig...@statistik.tu-dortmund.de, r-devel@r-project.org
 Date: Wednesday, September 22, 2010, 2:15 AM
 On Wed, 22 Sep 2010, carol white
 wrote:
 
  Thank you very much Uwe. It works now.
  
  I have a question about pdf formating in pdf manual
 file:
  
  How to format the long lines which go to the margin?
 For ex, this happens in Usage field if a function has many
 arguments. Also, it happens in examples or Arugment sections
 when the lines are long.
 
 Correct the sources by re-formatting over-long lines
 yourself.  (This should only happen in verbatim-like
 sections, hence unlikely to happen in \argument{}.)
 
 One of the things we suggest when checking a package is to
 read through the PDF manual, and this is one of the problems
 to look out for.  (Note that it does depend on the
 fonts used for the PDF, but the default Courier for
 monospaced text is somewhat wide.)
 
 -- Brian D. Ripley,         
         rip...@stats.ox.ac.uk
 Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
 University of Oxford,         
    Tel:  +44 1865 272861 (self)
 1 South Parks Road,         
            +44 1865
 272866 (PA)
 Oxford OX1 3TG, UK           
     Fax:  +44 1865 272595
 


 
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] some problems reported in 00check.log

2010-09-17 Thread carol white
 Hi,
1-
 How is it possible to use the name of a generic function as
 the name of a function which is not related to the generic
 function? For example, if I define predict.my.function, R
 will relate it to predict function and I'll get the following
 warning when I run R CMD check
 
 * checking S3 generic/method consistency ... WARNING
 predict:
   function(object, ...)
 predict.my.function ...
 
2- I get the following warning although I have used require of the related 
library in the function and imports in DESCRIPTION file

no visible global function definition for coxph

3- Although I use the alias of an Rd file of my package in cross references:

\seealso{
See Also as \code{\link{object.name}} 
}
where object.name is the name of an Rd file without Rd, I get the following 
warning

Missing link(s) in documentation object './man/object.name.Rd':
object.name

 I don't think that I will have use the name of my package.

 
Look forward to your reply,

 Carol






__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] some problems reported in 00check.log

2010-09-17 Thread carol white
Thank you for your reply.

--- On Fri, 9/17/10, Uwe Ligges lig...@statistik.tu-dortmund.de wrote:

 From: Uwe Ligges lig...@statistik.tu-dortmund.de
 Subject: Re: [Rd] some problems reported in 00check.log
 To: carol white wht_...@yahoo.com
 Cc: r-devel@r-project.org
 Date: Friday, September 17, 2010, 10:45 AM
 

 
regarding the point 3,
Suppose I have a data set, data.set1 with data.set1.Rd and data.set2 with 
data.set2.Rd that are related to each other. then, I put in \seealso field

in data.set2.Rd
\seealso{
 See Also as \code{\link{data.set1}}

and in data.set1.Rd
\seealso{
 See Also as \code{\link{data.set2}}

But I get the aforementioned warning that I don't understand why.
  Missing link(s) in documentation object
 './man/object.name.Rd':
  object.name

There is another problem. I have installed two packages in another path than 
the library path of R. how could I load them for R CMD check (where to indicate 
the path for lib.loc) as I get error message due to require of these two 
packages in different functions?

 
  3- Although I use the alias of an Rd file of my
 package in cross references:
 
  \seealso{
  See Also as \code{\link{object.name}}
  }
  where object.name is the name of an Rd file without
 Rd
 
 What is an Rd file without Rd?
 
 
  , I get the following warning
 
  Missing link(s) in documentation object
 './man/object.name.Rd':
  object.name
 
 This means you cited the help page itself?
 
 I think you need to tell us the alias(es) you used as well
 as the 
 purpose of this one.
 
 
 
    I don't think that I will have use
 the name of my package.
 
 
 Why is this related?
 
 Best wishes,
 Uwe Ligges
 
 
 
 
  Look forward to your reply,
 
    Carol
 
 
 
 
 
 
  __
  R-devel@r-project.org
 mailing list
  https://stat.ethz.ch/mailman/listinfo/r-devel
 




__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel