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 7758703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:25:51+00:00 2026-06-01T13:25:51+00:00

I’m exploring package building on Windows 7 but have been running into trouble after

  • 0

I’m exploring package building on Windows 7 but have been running into trouble after reaching the Command Prompt stage. The following thread appears to be on the same topic that I’m having trouble with, but the question remains unresolved:

  • Cannot install R package in Windows 7

The problem: whenever I try an R CMD command in Command Prompt (e.g. I’ve tried R CMD install pkgName, R cmd install pkgName, Rcmd install pkgName, where pkgName is a place-holder for an actual package that has been R CMD checked on OS X and also posted on CRAN, where I have the unzipped source in the current working directory), I get the following error message:

'R' is not recognized as an internal or external command,
operable program or batch file.

(If I try the Rcmd install pkgName command, then the error starts out as 'Rcmd' is not ....) Note that even if I type in just R in Command Prompt and hit enter, I get the same error, so I’m not even able to bring up R here, though it opens perfectly fine in its stand-alone interface.

I have examined the following guides without success in identifying the trouble:

  • Karl W Broman’s website
  • Rob J Hyndman’s website
  • Steven Mosher’s blog

The most immediate thing that came to mind was that the path variables in Windows were not set right, but this also has not (yet) led to the answer. For example, I have triple-checked the paths to ensure they are correct, including for the R version number, that x64 in the path name is accurate, etc.

I realize this is a complex issue to remotely diagnose, but any advice and suggestions on resolving this trouble is appreciated. For reference, below are the steps I have taken already to try to resolve this issue:

  • Uninstall R and Rtools
  • Install the latest version of R (2.15.0)
  • Install Rtools215 to match R version 2.15.0
  • Originally I let Rtools specify the path variables (turning that option on during installation). No success after this method.
  • I updated the path variables on my computer, where the below paths were used:

    C:\Rtools\bin; C:\Program Files\R\R-2.15.0\bin\x64;
    
  • I’ve also tried the R CMD (and Rcmd) commands with the following paths included (note that these paths don’t lead to anything on my computer, so I tried doing R CMD / Rcmd with and without them specified):

    C:\Rtools\perl\bin; C:\Rtools\MinGW\bin;
    
  • Tried adding/removing the following path, which goes to the only other folder visible within the Rtools folder:

    C:\Rtools\gcc-4.6.3;
    
  • Tried multiple variations of the R CMD commands, as noted earlier.

  • I tried this all a few months ago when I had R version 2.14.1 and Rtools214 installed, and I had the exact same trouble.

Note: I already had Cygwin installed prior to R and Rtools, and I have not installed MikTeX (yet).

  • 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-01T13:25:52+00:00Added an answer on June 1, 2026 at 1:25 pm
    • Have you closed the command prompt and opened a new one after adjusting the PATH?
    • Enter the command PATH on the command line and ensure that you are properly updating your path
    • Try navigating to the directory where R.exe is saved and running it locally — cd C:\Program...\bin\x64, R.exe.
    • Ensure that you’re running on Windows’ Command Prompt and not Cygwin’s terminal
    • If you actually have a space after the semi-colon in your PATH, you’ll need to remove that: /bin;C:/Program.... Try combining that with Joshua’s solution.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am currently running into a problem where an element is coming back from
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.