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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:34:12+00:00 2026-05-24T17:34:12+00:00

I am trying to install zipped binary R packages via command line on a

  • 0

I am trying to install zipped binary R packages via command line on a windows 7 machine with

R CMD INSTALL packagename

but it doesn’t work. I read that CMD INSTALL can’t be used to install binary packages. So how can I install binary packages via command line?

  • 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-05-24T17:34:12+00:00Added an answer on May 24, 2026 at 5:34 pm

    You can use the Rscript front end to run code as if it were in a running R session. Say the package you want to install is foo.zip in the current working directory. I’m probably abusing Rscript here, but it works for me:

    Rscript -e "install.packages('foo.zip', repos = NULL)"
    

    You need to supply the path to the binary package if it is not in the directory where there script is running. repos = NULL is the trick to get install.packages() to work from a local file. Read ?install.packages for more info on other arguments you might want to specify, especially lib. Note that you don’t benefit from automatic dependency resolution when doing this – you need a repo for that and if you supply one, R will try to download packages.

    You are right about R CMD INSTALL; the R Installation and Administration manual has the following in Section 6.3:

    To install packages from source in a Unix-alike use

        R CMD INSTALL -l /path/to/library pkg1 pkg2 ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying: install.packages(RGoogleDocs, repos = http://www.omegahat.org/R) As suggested here , but it doesn't
When trying to install my 32bit service on a Windows 64bit machine my installer
Trying to install rattle on a windows server 2008 R2 64bit machine, using 64-bit
Trying to install various packages on a Windows 7 64 bit and learned that
Trying to install Guard on my ubuntu machine, but when I try to run
When trying to install Bundler 0.8.1 on Ubuntu machine, it install fine but the
I'm trying to install Laconica , an open-source Microblogging application on my Windows development
I am trying to install the new version of the twitter-bootstrap-rails gem (v2), but
I was trying to install bundler in Linux Mint. but I'm getting this error
I am trying to install dm-types for DataMapper on my machine with gem install

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.