R Observatory
Search
install.packages("R2WinBUGS")
CRAN checks, method
OKnotes on 4 of 13
CRAN 30-day downloads, method
6,660−16.7% down on the 30 days before, the worse direction

Invoke a 'BUGS' model in 'OpenBUGS' or 'WinBUGS', a class "bugs" for 'BUGS' results and functions to work with that class. Function write.model() allows a 'BUGS' model file to be written. The class and auxiliary functions could be used with other MCMC programs, including 'JAGS'.

Full description

Invoke a 'BUGS' model in 'OpenBUGS' or 'WinBUGS', a class "bugs" for 'BUGS' results and functions to work with that class. Function write.model() allows a 'BUGS' model file to be written. The class and auxiliary functions could be used with other MCMC programs, including 'JAGS'. The suggested package 'BRugs' (only needed for function openbugs()) is only available from the CRAN archives, see <https://cran.r-project.org/package=BRugs>.

Maintainer
Uwe Ligges
Licence
GPL-2
Latest release
23 Feb 2026
First release
2 Feb 2004

Compare with another package

More details
Releases
37
Needs compilation
No
Needs R
>= 2.13.0
Date
2026-02-23
SystemRequirements
OpenBugs for functions bugs() and openbugs() or WinBUGS 1.4 for function bugs()
Task views (2)
Cite

Package

Run in R for the authors' entry:

citation("R2WinBUGS")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v012.i03.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for R2WinBUGS version 2.1-24 [Data set]. HJJB, LLC. Data release v2026-10-29. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-29, which the citation names so these numbers can be found later.

No warnings or errors. 4 of 13 check platforms have notes.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    Note

    Version checked
    2.1-24
    Time taken
    47 s

    R code for possible problems: Note

    Found the following calls to attach():

    Full output

  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    Note

    Version checked
    2.1-24
    Time taken
    37 s

    R code for possible problems: Note

    Found the following calls to attach():

    Full output

  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    Note

    Version checked
    2.1-24
    Time taken
    44 s

    R code for possible problems: Note

    Found the following calls to attach():

    Full output

  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    Note

    Version checked
    2.1-24
    Time taken
    44 s

    R code for possible problems: Note

    Found the following calls to attach():

    Full output

  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.1-24
    Time taken
    34 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.1-24
    Time taken
    40 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.1-24
    Time taken
    88 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.1-24
    Time taken
    45 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.1-24
    Time taken
    119 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.1-24
    Time taken
    83 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.1-24
    Time taken
    20 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.1-24
    Time taken
    80 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.1-24
    Time taken
    90 s
  • 4 Note
  • 9 OK
Check output (1)

R code for possible problems, Note on 4 platforms

Found the following calls to attach():
File ‘R2WinBUGS/R/attach.all.R’:
  attach(x, name = name)
See section ‘Good practice’ in ‘?attach’.

Check results on CRAN

Total downloads in the last 30 days
7,353−13.3% down on the 30 days before, the worse directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

1,352 of 26,553

CRAN

6,660 downloads in the last 30 days

Rank
1,352 of 26,553
Change
−16.7% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

255 downloads in the last 30 days

Rank
1,531 of 30,526
Change
+56.4% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

240 downloads in the last 30 days

Rank
92 of 29,233
Change
+31.2% up on the 30 days before, the better direction

It is in the total. Take it out

conda-forge

183 downloads in the last 30 days

Rank
2,632 of 3,828
Change
+76% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

15 downloads in the last 30 days

Rank
1,159 of 7,575
Change
−51.6% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
5
Dependent packages
3
Suggested by
7
Needs (5)
Installing it adds
1 package, 73 KB of source
Of those, need compilation
0
Optional extras (1)
Dependent packages (3)
PackageTitleDownloads in 30 days
R2jagsUsing R to Run 'JAGS'6,742
spikeSlabGAMBayesian Variable Selection and Model Choice for Generalized Additive Mixed Models535
isoWaterDiscovery, Retrieval, and Analysis of Water Isotope Data469
Functions
38
Public exports
12
Lines of R code
1,865
Median complexity
5
Functions (38)
Size and composition

Lines by kind (6,311)

KindLinesShare
R code1,86530%
Documentation1,05617%
Guides3,39054%

Lines by language

LanguageLinesShare
Other2,88446%
R1,86530%
Rd1,05617%
Vignettes5068%

Languages are counted from file extensions.

Files
66
R functions
38
Object systems
S3: 3 methods
Complexity
Median
5
Mean
8.45
Highest
46
Median lines per function
22.5
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
38
Calls
54
Unconnected
2
Groups
2
Growth (37 releases)
Total lines by release
1,196 on 2 Feb 20046,311 on 23 Feb 2026
Release changes

The package was built and has no tests to run.

Lines of tests
0
Exports named in tests
0%
Test suite
Has tests
No
Test frameworks
No tests in this release
Test lines per line of code
0
Exports documented
100%
Arguments documented
97%
Return value documented
88.9%
Help pages with examples
19%
Examples run in checks
100%
Guides (1)
Other documentation
README
No
Release notes file
Yes
Help pages
21
Lines of documentation
1,056
DatasetSizeColumns
schools8 schools analysisalso in 1 other package8 × 3school, estimate, sd
Earlier names (2)
  • changes
  • Jouni Kerman.

No repository on record

R releases
  • On CRAN
  • Release
VersionReleasedR
2.1-24 current23 Feb 20264.5.2
2.1-2323 Jul 20254.5.1
2.1-22.15 Feb 20244.3.2
2.1-2216 Dec 20234.3.2
2.1-2130 Jul 20153.2.1
2.1-2031 May 20153.2.0
2.1-197 Apr 20133.0.0
2.1-1822 Mar 20112.12.2
Earlier versions (29)
VersionReleasedREvents
2.1-168 Nov 20092.10.0
2.1-155 Nov 20092.10.0
2.1-1414 Apr 20092.8.1
2.1-1329 Mar 20092.8.1
2.1-1213 Feb 20092.8.1
2.1-113 Feb 20092.8.1
2.1-1020 Jan 20092.8.1
2.1-98 Jan 20092.8.1
2.1-81 Feb 20082.6.1
2.1-721 Jan 20082.6.1Maintainer: Uwe Ligges
2.1-613 Sep 20072.5.1
2.1-424 May 20072.5.0
2.1-313 May 20072.5.0
2.1-213 May 20072.5.0
2.0-42 Nov 20062.4.0
2.0-36 Oct 20062.4.0
2.0-227 Jul 20062.3.1
2.0-129 May 20062.3.0
1.1-120 Feb 20062.2.1
1.1-015 Dec 20052.2.0
1.0-115 Nov 20052.2.0
1.0-05 Aug 20052.1.1
0.2-930 Jul 20052.1.1
0.2-831 May 20052.1.0
0.2-718 May 20052.1.0
0.2-625 Jan 20052.0.1
0.2-311 Sep 20041.9.1
0.2-215 May 20041.9.0
0.2-12 Feb 20041.8.1