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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:41:58+00:00 2026-05-25T02:41:58+00:00

I would like to write a script that installs JAGS and rjags on a

  • 0

I would like to write a script that installs JAGS and rjags on a new ubuntu installation, and that will work independently of the currently available versions of these packages. I’d like to know how I can do this while avoiding conflicts between versions.

I have the following R script, initialize.R:

system('apt-get install jags') 
install.packages('rjags')

So that I can run from bash:

sudo R --vanilla < initialize.R

However, the most recent version of JAGS in the Ubuntu repository is 2.2, and the version of rjags available from CRAN depends on JAGS > 3.0.

I am interested in installing compatable JAGS and rjags, perhaps either:

  1. installing a specific version of JAGS (e.g. 2.2) and the compatable rjags version (which version?)
  2. generically installing the version of JAGS currently in the ubuntu repository and the appropriate rjags version, or
  3. generically installing the most recent version of rjags at cran and the appropriate version of JAGS

The ability to do case 1 is essential, but am also curious how I could implement cases 2 and/or 3.

questions:

  • How can I do this?
  • Is there a more sound approach?

update: following link in Dirk’s answer, the following worked:

add-apt-repository ppa:marutter/rrutter
apt-get update
apt-get install r-cran-rjags 
  • 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-25T02:41:59+00:00Added an answer on May 25, 2026 at 2:41 am

    Michael Rutter provides an r-cran-rjags package via his repository; this works with the jags package you already have installed. See this message on r-sig-devel for details, and you may want to subscribe to and follow the r-sig-debian list to stay abreast of these things.

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

Sidebar

Related Questions

I would like to write a script that will tell another server to SVN
I would like to write a ruby script that will save the Json object
I would like to write a plug-in that will allow a custom written CRM
I would like to write a program that will identify a machine( for licensing
I would like to write a script that can receive e-mail and then do
I would like to write a python script that takes a bunch of swf
I would like to write a script that logs into hotmail and changes the
I would like to write a script that is not activated by a certain
I would like to write a script that takes one argument that might look
I would like to write a script that would access the google api pass

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.