Skip to content
Prev 1578 / 12125 Next

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

Hi Everyone,


My Package did not pass the pre-test with following Note.

I am not sure how to fix this problem.

Any advice will be really appreciated.

Many thanks,


In Ho

-----------

* checking compiled code ... NOTE
File 'FHDI/libs/i386/FHDI.dll':
  Found '_ZSt4cerr', possibly from 'std::cerr' (C++)
    Object: 'FHDI.o'
  Found '_ZSt4cout', possibly from 'std::cout' (C++)
    Object: 'FHDI.o'
  Found 'rand', possibly from 'rand' (C)
    Object: 'FHDI.o'
  Found 'srand', possibly from 'srand' (C)
    Object: 'FHDI.o'
File 'FHDI/libs/x64/FHDI.dll':
  Found '_ZSt4cerr', possibly from 'std::cerr' (C++)
    Object: 'FHDI.o'
  Found '_ZSt4cout', possibly from 'std::cout' (C++)
    Object: 'FHDI.o'
  Found 'rand', possibly from 'rand' (C)
    Object: 'FHDI.o'
  Found 'srand', possibly from 'srand' (C)
    Object: 'FHDI.o'
File 'FHDI/libs/i386/FHDI.dll':
  Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols'
File 'FHDI/libs/x64/FHDI.dll':
  Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols'

Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor the system RNG.
It is good practice to register native routines and to disable symbol
search.