Skip to content
Prev 1579 / 12125 Next

[R-pkg-devel] Subject: cerr, cout, rand, and srand

This is well documented in Writing R extensions:

 - https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Printing for I/O streams

 - https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines for native routine registrations.


As for the random number generator, you should use the one provided by R: https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Random-numbers


Max

Writing R Extensions<https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Random-numbers>
cran.r-project.org
1 Creating R packages. Packages provide a mechanism for loading optional code, data and documentation as needed. The R distribution itself includes about 30 packages.


Writing R Extensions<https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines>
cran.r-project.org
1 Creating R packages. Packages provide a mechanism for loading optional code, data and documentation as needed. The R distribution itself includes about 30 packages.


Writing R Extensions<https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Printing>
cran.r-project.org
1 Creating R packages. Packages provide a mechanism for loading optional code, data and documentation as needed. The R distribution itself includes about 30 packages.
Message-ID: <CY1PR03MB135955821D79C8319CBA6A71BAE60@CY1PR03MB1359.namprd03.prod.outlook.com>
In-Reply-To: <DM5PR04MB1116A6061032FC722405AF2ED2E60@DM5PR04MB1116.namprd04.prod.outlook.com>