[Rd] Handling of upper/lowercase in package names (PR#2816)

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Apr 24 18:42:41 MEST 2003


This is not a bug in R, but in your OS which gives you the non-existent 
directory `Tools'.

Since this has been possible for at least five years, I don't consider it
worth fixing.  Learn to use the correct names for packages!

On Tue, 22 Apr 2003 phgrosjean at sciviews.org wrote:

> Hi,
> 
> This is (presumably?) a bug in R 1.7.0 under Windows. I have not tested it
> on other systems. Attachment of packages is case sensitive but not
> library(), resulting in multiple loadings of the same package if the library
> name is spelled differently. The following example loads the `tools'
> package, once as `tools' and once as `Tools'. This behavior is the same with
> all packages and it occurs also in R 1.6.2.
> 
> > library(tools)
> > search()
>  [1] ".GlobalEnv"      "package:tools"   "package:methods" "package:ctest"
> "package:mva"
>  [6] "package:modreg"  "package:nls"     "package:ts"      "Autoloads"
> "package:base"
> > library(Tools)
> 
> Attaching package 'Tools':
> 
> 
>         The following object(s) are masked from package:tools :
> 
>          .checkDemoIndex .checkVignetteIndex .installMD5sums
> .installPackageDescription .installPackageIndices buildVignettes
> checkAssignFuns checkDocArgs checkDocStyle checkFF checkMD5sums checkMethods
> checkTnF checkVignettes codoc md5sum pkgVignettes print.checkAssignFuns
> print.checkDemoIndex print.checkDocArgs print.checkDocStyle print.checkFF
> print.checkMethods print.checkTnF print.checkVignetteIndex
> print.checkVignettes print.codoc print.undoc Rdindex Rtangle RtangleSetup
> RtangleWritedoc RweaveLatex RweaveLatexOptions RweaveLatexSetup Stangle
> Sweave SweaveSyntaxLatex SweaveSyntaxNoweb SweaveSyntConv undoc
> 
> > search()
>  [1] ".GlobalEnv"      "package:Tools"   "package:tools"   "package:methods"
> "package:ctest"
>  [6] "package:mva"     "package:modreg"  "package:nls"     "package:ts"
> "Autoloads"
> [11] "package:base"
> 
> 
> Version:
>  platform = i386-pc-mingw32
>  arch = i386
>  os = mingw32
>  system = i386, mingw32
>  status =
>  major = 1
>  minor = 7.0
>  year = 2003
>  month = 04
>  day = 16
>  language = R
> 
> Windows XP Professional (build 2600) Service Pack 0.0
> 
> Search Path:
>  .GlobalEnv, package:Tools, package:tools, package:methods, package:ctest,
> package:mva, package:modreg, package:nls, package:ts, Autoloads,
> package:base
> 
> Best,
> 
> Philippe Grosjean
> 
> ...........]<(({°<...............<°}))><...............................
>  ) ) ) ) )
> ( ( ( ( (       Dr. Philippe Grosjean
>  ) ) ) ) )
> ( ( ( ( (       LOV, UMR 7093
>  ) ) ) ) )      Station Zoologique
> ( ( ( ( (       Observatoire Océanologique
>  ) ) ) ) )      BP 28
> ( ( ( ( (       06234 Villefranche sur mer cedex
>  ) ) ) ) )      France
> ( ( ( ( (
>  ) ) ) ) )      tel: +33.4.93.76.38.18, fax: +33.4.93.76.38.34
> ( ( ( ( (
>  ) ) ) ) )      e-mail: phgrosjean at sciviews.org
> ( ( ( ( (       SciViews project coordinator (http://www.sciviews.org)
>  ) ) ) ) )
> .......................................................................
> 
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 
> 

-- 
Brian D. Ripley,                  ripley at 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



More information about the R-devel mailing list