Sunday, June 06, 2010

General steps to compile JAGS in a Linux based OS system and install rjags in R

I have an entry here about how to install JAGS and rjags in Fedora.  However, I have exchanged emails with Robert Dorazio and Dr. Martyn Plummer.  Here are the easier steps to compile JAGS and install rjags in R.

1. After you extract the source code of JAGS, go to the folder where the JAGS makefile is using a terminal.
cd JAGS-2.1.0

2. In a terminal, type the following
sudo ./configure --prefix=/usr
sudo make
sudo make install

3. The step 2 will help your system to identify where the JAGS is.  So in R, you can simply install rjags as:
install.package("rjags")

Of course, once you can install rjags successfully in R, you can install our R2jags package as well:
install.package("R2jags")

4 comments:

小豬媽 said...

Hello,請問你是畢業於嘉義協同中學國三丁的蘇毓淞嗎? 我是雨潔,若你有看到我的留言,請回覆我email:bj8584@yahoo.com.tw

有同學會資料以及通訊錄要給你,謝謝~

LinuxPune Deccan said...

喜队,

推广Linux开源技术最好的我们的本性有了一个单一的意图,LinuxPune.com队已决定请他们各自独特的文章与我们的的邮件ID info@linuxpune.com将是他们的照片发送给我们的基于Linux的博客张贴在我们的博客,我们也将要求各自的团队发布的链接,因此我们可以互相帮助增加bacllinks的部分和实习生。

希望它会是一个梦幻般的相关,我们期待着......

LinuxPune队
http://linuxpune.com
info@linuxpune.com

LinuxPune Deccan said...

Hi Team ,

With a single intention to promote Linux open source technology to the best of our nature , LinuxPune.com team has decided to request Linux Based Bloggers to send us their respective unique article with their pictures in our mail id info@linuxpune.com which will be posted in our blog section and interns we will also request your respective team to post our link hence we can mutually help each other to increase the bacllinks .

Hope its going to be a fantastic associated we are looking forward to ....

LinuxPune Team
http://linuxpune.com
info@linuxpune.com

LinuxPune Deccan said...

LinuxPune – Inspired by Open Source Technology
Infrastructure | Outsourcing | Migration Project | Training | Placement

301,Kamala Arcade,Jangali Maharaj Road, Shivaji Nagar, Pune, Maharashtra
Opp BalGandharva Rang Mandir+91 808 71 71 71 0 / Ekta -020 41007600
info@linuxpune.com , www.linuxpune.com