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

  • Home
  • SEARCH
  • 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 8009801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:33:05+00:00 2026-06-04T18:33:05+00:00

How do I install an R package globally, so it’s available to all users?

  • 0

How do I install an R package globally, so it’s available to all users? Currently I’m doing

R.exe CMD INSTALL *.zip

But it does

* installing to library 'C:/Users/Matt/Documents/R/win-library/2.15'

I would like to install the packages alongside R in Windows’ ‘program files’.

  • 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-04T18:33:06+00:00Added an answer on June 4, 2026 at 6:33 pm

    Your big problem here is installing to C:\Program Files\. This means on versions of windows with file permissions, you need admin permissions to write to that folder. As R does not commonly request admin permissions, it will on default install to an user subdirectory, unless you run R as administrator (by right clicking on the shortcut). In which case you can use the GUI to install packages and it will install them globally by default. For working on the command line, you can also run the cmd session as administrator.

    In future, it’s recommended that you install R to say, C:\R\ to avoid this.

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

Sidebar

Related Questions

I tried installing Essential.Diagnostics via Install-Package Essential.Diagnostics But I had an issue where it
I want to install this python package: http://pypi.python.org/pypi/netifaces/0.5 But I don't know how and
I'm creating an install package using InnoSetup and installing SQL Server 2005 Express. Here's
Ok, so I installed EF 4.2 from NuGet. Just did Install-Package EntityFramework. That's all
Where does the object MSXML2.ServerXMLHTTP.4.0 come from? Which install package? I'm attempting to do
My project is using AutoMapper, but I've used Nuget to install the package. However,
I tried Install-Package Solrnet.NHibernate on a new console application but it failed with this
I don't know why. Install the package directly won't have any problem. But will
In chef I need to do easy_install -U package. easy_install_package distribute do action :install
I've batchly generated a lot of apk install package, and I need to commit

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.