Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8538465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:07:30+00:00 2026-06-11T11:07:30+00:00

Here are the two registry entries I’m asking about.** HKEY_LOCAL_MACHINE\Software\R-core\R\Current Version HKEY_LOCAL_MACHINE\Software\R-core\R\version\InstallPath When R

  • 0

Here are the two registry entries I’m asking about.**

HKEY_LOCAL_MACHINE\Software\R-core\R\Current Version
HKEY_LOCAL_MACHINE\Software\R-core\R\version\InstallPath

When R is launched from the command line (or from emacs, or statconnDCOM for that matter) it uses whatever version appears first in Windows’ Path environment variable. By contrast, double clicking on a *.Rdata file uses the version pointed to by the relevant file association entry in HKEY_CLASSES_ROOT.

But when or by what are the two HKEY_LOCAL_MACHINE entries used?

EDIT: Brian Diggs points to a bundle of Windows *.bat files that do use (and modify) these registry entries, but I’m still interested in whether anything closer to ‘core’ R uses these. (I’m hoping the answer is ‘no’.)


** As described in the R for Windows FAQ, these entries may be set either during installation (by clicking ‘Save version number in registry’) or later from the command line (by typing RSetReg.exe from within $RHOME\bin).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:07:31+00:00Added an answer on June 11, 2026 at 11:07 am

    Major edit:

    It looks like those registry entries are primarily there for use by external applications.

    Here’s why I think that.

    1. grep’ing HKEY_LOCAL_MACHINE in the R sources turns up four hits in just three files. The files — "extra.c", "RSetReg.c", and "rhome.c" — are all located in R-2.15.0/src/gnuwin/ or its subdirectories.

    2. The relevant occurrence appears to be that in R-2.15.0/src/gnuwin/rhome.c, where it is used by the C function get_R_HOME. That function is designed to

      /* get R_HOME from environment or registry: used in embedded apps */

      and it searches in the registry only if R_HOME if it has not yet been found in the “C environment space” or the “Windows API environment space”.

    3. get_R_HOME, in turn, only appears in two other files, "R-2.15.0/src/gnuwin/embeddedR.c", and "R-2.15.0/src/gnuwin/front-ends/rtest.c". (According to its resident readme file, the role of "R-2.15.0/src/gnuwin/front-ends/" is to make it possible to “Link[…] the R DLL into other applications”.)

    4. R’s *NIX origins and emphasis on portability make it seem unlikely that anything close to R’s core functionality would depend on registry entries. (This item’s obviously way more speculative.)

    Unless I hear otherwise, that’s enough to convince me that the registry entries’ only purpose is to provide pointers for external applications, particularly those that use an embedded instance of R.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are two queries that return the same resultset, but which is the optimal
Here's two screen shots, showing the effect with a small viewport that has to
Here is two variants. First: int n = 42; int* some_function(int* input) { int*
Here is two my variants of method, which returns a string, associated with enum
I've got a test site here with two columns, both with absolute positioning. http://dl.dropbox.com/u/17844821/zeug/heighttest.html
Say I want to draw a Ball in the scene and here are two
I have a question, here are two classes below: class Base{ public: virtual void
I have a very strange behavior with Request.Form . Here are two IIS 7
I have a menu bar that is rotated slightly. Here are two buttons as
So two questions here: If I use <input type=button onclick=validate()> then the enter key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.