[R] R logo size in package information tab of Rstudio
Jeff Newmiller
jdnewmil at dcn.davis.ca.us
Wed Mar 30 06:18:19 CEST 2016
You are not clarifying yet. If this requires RStudio to reproduce then this question doesn't belong here. I am not yet convinced that RStudio IS required, but every time you mention it the water gets muddier.
--
Sent from my phone. Please excuse my brevity.
On March 29, 2016 9:07:49 PM PDT, Marc Girondot via R-help <r-help at r-project.org> wrote:
>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 :
>> 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
>>
>>
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.
[[alternative HTML version deleted]]
More information about the R-help
mailing list