# Package Compatibility

We have reported the results of tests of CRAN packages using TERR in visualizations that are available on TIBCO™ Cloud® Spotfire at the following links. You can browse and review the results for the packages you want to use and their Task Views. You can review the results run for every expression in every help file for every CRAN package or BioConductor package for the following platforms.

Beginning with release 5.1, we also run all help examples provided in packages in the Bioconductor (BIOC) list.

Note: To see a complete listing of the Rapi C API functions implemented in TERR, run the following code.

    library(terrUtils)
    implementedRapiEntries()

## Package compatibility analysis in Spotfire

We reported the results of tests of CRAN packages using TERR 6.0 in visualizations that are available on TIBCO™ Cloud® Spotfire at the following links. You can browse and review the results for the packages you want to use and their Task Views. You can review the results run for every expression in every help file for every CRAN package or BioConductor package for the following platforms.

CRAN packages | BioConductor packages
--- | ---
Windows | Windows
Linux | Linux

The tests run against code examples in the help provide some guidance for determining rates of success. The accuracy of information collected depends on the number and quality of examples in the package reference topics. These analyses are not meant to be the definitive determination of exact compatibility.

For more information about CRAN packages, see https://cran.r-project.org/web/packages/

- For more information about BioConductor packages, see https://www.bioconductor.org/packages/release/bioc/

Note: Spotfire does not warrant, deliver, or support code or other material provided by the R Project for Statistical Computing, including but not limited to development tools and packages, and such code and other material does not constitute a part of TERR. Such material therefore is not within the scope of your license for TERR. Download and use of such material is solely at your own discretion and subject to the free open source license terms applicable to such material. Consult a legal professional concerning compliance with any free open source license terms applicable to such material, particularly if you plan to engage in redistribution of TERR and/or such material. (Please note that TERR may be redistributed solely pursuant to a license that expressly grants such redistribution rights.)

## Package compatibility summary in TERR

Alternatively, we provide a summary of our testing results on the documentation site in the following CSV-formatted files.

- CRANonTERR-Linux.csv
- CRANonTERR-Win.csv
- BIOConTERR-Linux.csv
- BIOConTERR-Win.csv

TERR console code example for CRAN
  You can use the TERR console to quickly access a summary of the information. The following example returns the results for testing the help files for the CRAN package caret. You can change the example to match the platform and package of your choice.
  1. Change the CSV file name to match the platform (Linux or Windows).
  2. Remove the comment markers for the CSV file name.
  3. Provide the name of the package you want to query.

      # Example:  CRAN tests compatibility with this version of TERR
      #
      #packageCompat <- read.csv("https://docs.tibco.com/pub/enterprise-runtime-for-R/6.1.3/doc/csv/CRANonTERR-Linux.csv",
      #   stringsAsFactors=FALSE)
      #
      #packageCompat <- read.csv("https://docs.tibco.com/pub/enterprise-runtime-for-R/6.1.3/doc/csv/CRANonTERR-Win.csv",
      #   stringsAsFactors=FALSE)
      #
      subset(packageCompat, Package.Name=="caret")
      ## (update)

  The returned results resemble the following for the above example.

          Package.Name Version            Status Percent.Successful Total.Executed
      1608        caret  6.0-86 Mostly successful                98.5%            205
          Passed Failed Graphics Random.Numbers
      1608    202      3       17             100

  This table shows how to read the results for this example. (Shows sample results for running the example on Linux. Results for Windows can vary slightly.)
  Column name | Result
  --- | ---
  Package.Name | caret
  Version | 6.0-86
  Status | Mostly successful
  Percent.Successful | 98.5%
  Total.Executed | 205
  Passed | 202
  Failed | 3
  Graphics | 17
  Random.Numbers | 100

TERR console code example for BioConductor
  You can use the TERR console to quickly access a summary of the information. The following example returns the results for testing the help files for the BioConductor package limma. You can change the example to match the platform and package of your choice.
  1. Change the CSV file name to match the platform (Linux or Windows).
  2. Remove the comment markers for the CSV file name.
  3. Provide the name of the package you want to query.

      # Example:  BioConductor tests compatibility with this version of TERR
      #
      #packageCompat <- read.csv("https://docs.tibco.com/pub/enterprise-runtime-for-R/6.1.3/doc/csv/BioConTERR-Linux.csv",
      #   stringsAsFactors=FALSE)
      #
      #packageCompat <- read.csv("https://docs.tibco.com/pub/enterprise-runtime-for-R/6.1.3/doc/csv/BioConTERR-Win.csv",
      #   stringsAsFactors=FALSE)
      #
      subset(packageCompat, Package.Name=="limma")
      ## (update)

  The returned results resemble the following for the above example.

      Package.Name Version            Status Percent.Successful Total.Executed
      901        limma  3.44.3 Mostly successful               96.9            391
          Passed Failed Graphics Random.Numbers
      901    379     12       49             75

  This table shows how to read the results for this example. (Shows sample results for running the example on Linux. Results for Windows can vary slightly.)
  Column name | Result
  --- | ---
  Package.Name | limma
  Version | 3.44.3
  Status | Mostly successful
  Percent.Successful | 96.9%
  Total.Executed | 391
  Passed | 379
  Failed | 12
  Graphics | 49
  Random.Numbers | 75