Skip to content
Prev 359671 / 398502 Next

R logo size in package information tab of Rstudio

Here are my R session information:
 > sessionInfo()
R version 3.3.0 alpha (2016-03-24 r70373)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.4 (El Capitan)

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

If the help is displayed within the R gui using:
help(package='packrat')

The Rlogo.svg is scaled correctly.

However if the help is shown within Rstudio, the Rlogo.svg is not scaled 
corrected and is shown at huge size.

The choice of logo displayed in the help comes from the file in folder 
html within each package. For example for package numDeriv, within the 
file: 
/Library/Frameworks/R.framework/Versions/3.3/Resources/library/numDeriv/html/00Index.html

There is this link:
</head><body>
<h1> Accurate Numerical Derivatives
<img class="toplogo" src="../../../doc/html/logo.jpg" alt="[R logo]" />
</h1>

Whereas for packrat package, within the file
/Library/Frameworks/R.framework/Versions/3.3/Resources/library/packrat/html/00Index.html

The link is this one:
</head><body>
<h1> A Dependency Management System for Projects and their R Package
Dependencies
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
</h1>

And the Rlogo.svg is badly scaled in Rstudio Version 0.99.1119 (beta) or 
in public 0.99.893 version.

So there are two solutions. Or Rstudio changes the way they scale 
Rlogo.svg, or Rlogo.svg is correctly scaled during R install. Here is a 
Rlogo.svg correctly scaled to replace the original version:
http://www.ese.u-psud.fr/epc/conservation/CRAN/Rlogo.svg

Sincerely,

Marc


Le 30/03/2016 00:44, Duncan Murdoch a ?crit :