# R Language Primer

The R language has been developed into the open-source R engine and the TERR engine (among others), all developed from the legacy S-PLUS language.

Some differences exist between the open-source R engine and the TERR engine; however, they are highly compatible. Most scripts and functions that you write in open-source R run in the TERR engine.

Tip: For more information, see Differences Between Spotfire Enterprise Runtime for R and Open-Source R at https://docs.tibco.com/products/tibco-enterprise-runtime-for-r.
Note: Open-source R is available under separate open source software license terms and is not part of TERR. As such, open-source R is not within the scope of your license for TERR. Open-source R is not supported, maintained, or warranted in any way by Cloud Software Group, Inc. Download and use of open-source R is solely at your own discretion and subject to the free open source license terms applicable to open-source R.

This documentation is not intended to teach programmers how to write scripts and functions or delve too deeply into creating R language packages. Rather, we address techniques for skilled package developers who must test and share their packages across an organization that has deployed Spotfire (and optionally Spotfire® Statistics Services), and that uses the TERR engine to run the package code.

See Recommendations for Using R Securely for more guidelines for downloading R and packages.