- Home
- CRAN
**nimble**: Flexible BUGS-Compatible System for Hierarchical Statistical Modeling and Algorithm Development**nimCat**: cat function for use in nimbleFunctions

# cat function for use in nimbleFunctions

### Description

cat function for use in nimbleFunctions

### Usage

1 | ```
nimCat(...)
``` |

### Arguments

`...` |
an arbitrary set of arguments that will be printed in sequence. |

### Details

`cat`

in nimbleFunction run-code imitates the R function `cat`

. It prints its arguments in order. No newline is inserted, so include `"\n"`

if one is desired.

When an uncompiled nimbleFunction is executed, R's `cat`

is used. In a compiled nimbleFunction, a C++ output stream is used that will generally format output similarly to R's `cat`

. Non-scalar numeric objects can be included, although their output will be formatted slightly different in uncompiled and compiled nimbleFunctions.

In nimbleFunction run-time code, `cat`

is identical to `print`

except the latter appends a newline at the end.

`nimCat`

is the same as `cat`

, and the latter is converted to the former when a nimbleFunction is defined.

### See Also

`print`

### Examples

1 2 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.

- asRow: Turn a numeric vector into a single-row or single-column...
- autoBlock: Automated parameter blocking procedure for efficient MCMC...
- BUGSdeclClass-class: BUGSdeclClass contains the information extracted from one...
- buildAuxiliaryFilter: Create an auxiliary particle filter algorithm to estimate...
- buildBootstrapFilter: Create a bootstrap particle filter algorithm to estimate...
- buildEnsembleKF: Create an Ensemble Kalman filter algorithm to sample from...
- buildLiuWestFilter: Create a Liu and West particle filter algorithm.
- buildMCEM: Builds an MCEM algorithm from a given NIMBLE model
- buildMCMC: Create an MCMC function, from an MCMCconf object
- Categorical: The Categorical Distribution
- checkInterrupt: Check for interrupt (e.g. Ctrl-C) during nimbleFunction...
- CmodelBaseClass-class: Class 'CmodelBaseClass'
- CnimbleFunctionBase-class: Class 'CnimbleFunctionBase'
- codeBlockClass-class: Class 'codeBlockClass'
- combine_MCMC_comparison_results: Combine multiple objects returned by compareMCMCs
- compareMCMCs: Run multiple MCMCs (packages or NIMBLE cases) for multiple...
- compileNimble: compile NIMBLE models and nimbleFunctions
- configureMCMC: Build the MCMCconf object for construction of an MCMC object
- Constraint: Constraint calculations in NIMBLE
- decide: Makes the Metropolis-Hastings acceptance decision, based upon...
- decideAndJump: Creates a nimbleFunction for executing the...
- declare: Explicitly declare a variable in run-time code of a...
- deregisterDistributions: Remove user-supplied distributions from use in NIMBLE BUGS...
- Dirichlet: The Dirichlet Distribution
- distributionInfo: Get information about a distribution
- Exponential: The Exponential Distribution
- getBound: Get value of bound of a stochastic node in a model
- getBUGSexampleDir: Get the directory path to one of the classic BUGS examples...
- getDefinition: Get nimbleFunction definition
- getLoadingNamespace: return the namespace in which a nimbleFunction is being...
- getNimbleOption: Get NIMBLE Option
- getParam: Get value of a parameter of a stochastic node in a model
- getsize: Returns number of rows of modelValues
- identityMatrix: Create an Identity matrix
- initializeModel: Performs initialization of nimble model node values and log...
- Interval: Interval calculations
- is.nf: check if a nimbleFunction
- makeBoundInfo: Make an object of information about a model-bound pairing for...
- make_MCMC_comparison_pages: Make html pages summarizing results from compareMCMCs
- makeParamInfo: Make an object of information about a model-parameter pairing...
- MCMCconf-class: Class 'MCMCconf'
- MCMCsuite: Executes multiple MCMC algorithms and organizes results.
- MCMCsuiteClass-class: Class 'MCMCsuiteClass'
- modelBaseClass-class: Class 'modelBaseClass'
- modelDefClass-class: Class for NIMBLE model definition
- modelValues: Create a NIMBLE modelValues Object
- modelValuesBaseClass-class: Class 'modelValuesBaseClass'
- modelValuesConf: Create the confs for a custom NIMBLE modelValues object
- Multinomial: The Multinomial Distribution
- MultivariateNormal: The Multivariate Normal Distribution
- Multivariate-t: The Multivariate t Distribution
- nfMethod: access (call) a member function of a nimbleFunction
- nfVar: Access or set a member variable of a nimbleFunction
- nimArray: Creates a array object of arbitrary dimension for use in...
- nimbleCode: Turn BUGS model code into an object for use in 'nimbleModel'...
- nimbleFunction: create a nimbleFunction
- nimbleFunctionBase-class: Class 'nimbleFunctionBase'
- nimbleFunctionList-class: Create a list of nimbleFunctions
- nimbleFunctionVirtual: create a virtual nimbleFunction, a base class for other...
- nimble-internal: Functions and Classes Internal to NIMBLE
- nimble-math: Mathematical functions for BUGS and nimbleFunction...
- nimbleModel: Create a NIMBLE model from BUGS code
- nimbleOptions: NIMBLE Options Settings
- nimCat: cat function for use in nimbleFunctions
- nimCopy: Copying function for NIMBLE
- nimDim: return sizes of an object whether it is a vector, matrix or...
- nimInteger: Creates an integer vector for use in NIMBLE DSL functions
- nimMatrix: Creates a matrix object for use in NIMBLE DSL functions
- nimNumeric: Creates a numeric vector for use in NIMBLE DSL functions
- nimPrint: print function for use in nimbleFunctions
- nimStop: Halt execution of a nimbleFunction function method. Part of...
- nodeFunctions: calculate, calculateDiff, simulate, or get the current log...
- rankSample: Generates a weighted sample (with replacement) of ranks
- readBUGSmodel: Create a NIMBLE BUGS model from a variety of input formats,...
- registerDistributions: Add user-supplied distributions for use in NIMBLE BUGS models
- rename_MCMC_comparison_method: Rename a method in an object returned by compareMCMCs
- reshape_comparison_results: Convert comparison results to a more general format
- resize: Resizes a modelValues object
- Rmatrix2mvOneVar: Set values of one variable of a modelValues object from an R...
- RmodelBaseClass-class: Class 'RmodelBaseClass'
- runMCMC: Run one or more chains of an MCMC algorithm and extract...
- run.time: Time execution of NIMBLE code
- samplers: MCMC Sampling Algorithms
- setAndCalculate: Creates a nimbleFunction for setting the values of one or...
- setAndCalculateOne: Creates a nimbleFunction for setting the value of a scalar...
- setSize: set the size of a numeric variable in NIMBLE
- setupOutputs: Explicitly declare objects created in setup code to be...
- simNodes: Basic nimbleFunctions for calculate, simulate, and getLogProb...
- simNodesMV: Basic nimbleFunctions for using a NIMBLE model with sets of...
- singleVarAccessClass-class: Class 'singleVarAccessClass'
- t: The t Distribution
- testBUGSmodel: Tests BUGS examples in the NIMBLE system
- updateMCMCcomparisonWithHighOrderESS: Re-estimate effective sample size from results of...
- valueInCompiledNimbleFunction: get or set value of member data from a compiled...
- values: Access or set values for a set of nodes in a model
- Wishart: The Wishart Distribution