[R] R logo size in package information tab of Rstudio

Marc Girondot marc_grt at yahoo.fr
Wed Mar 30 06:07:49 CEST 2016

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)

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

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 

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

Whereas for packrat package, within the file

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

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:



Le 30/03/2016 00:44, Duncan Murdoch a écrit :
> On 29/03/2016 3:42 PM, Marc Girondot via R-help wrote:
>> Two different sizes of R logo are shown in Rstudio in the Help at the
>> package level.
>> For example, numderiv shows a nice discreet logo located at (in MacosX):
>> /Library/Frameworks/R.framework/Versions/3.3/Resources/doc/html/logo.jpg
>> whereas packrat shows a huge logo located at:
>> /Library/Frameworks/R.framework/Versions/3.3/Resources/doc/html/Rlogo.svg 
>> The choice between both depends on the path indicated in the file
>> Index.html located in html folder for each package.
>> It would be better to have svg version of Rlogo.svg of the same size
>> than logo.jpg (I have converted the Rlogo.svg into the same size than
>> logo.jpg and it looks much better whit the new version).
> What versions are you talking about?  I'd guess your packages were 
> built with different versions of R if they ended up with different 
> links to the logo.
> Why is RStudio relevant here?  I don't think RStudio does anything 
> with the R help files other than to display them in its built-in browser.
> Duncan Murdoch

More information about the R-help mailing list