[R-pkg-devel] Question on Notes for Package Submission

2017-08-18 Thread Chu-Lan Kao
Dear Sir,

We've just uploaded a package with two notes that we couldn't figure out
how to deal with it. They are:

1) * checking R code for possible problems ... NOTE

est.changepoints: no visible global function definition for
  'prior_normal_A'
est.changepoints: no visible binding for global variable 'data.X'
est.changepoints: no visible global function definition for
  'prior_pois'
Undefined global functions or variables:
  data.X prior_normal_A prior_pois


2) * checking compiled code ... NOTE

File 'StepSignalMargiLike/libs/i386/StepSignalMargiLike.dll':
  Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols'
File 'StepSignalMargiLike/libs/x64/StepSignalMargiLike.dll':
  Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols'

It is good practice to register native routines and to disable symbol
search.

See 'Writing portable packages' in the 'Writing R Extensions' manual.



We have browsed through the internet, and couldn't find the correct way to
solve these. So, we kindly ask for you help.

Sincerely,


Chu-Lan Kao ( 高竹嵐 Michael )
*http://chulankao.blogspot.com / <http://chulankao.blogspot.com/>*
chulan...@gmail.com
<http://chulankao.blogspot.com%20/%20chulan...@gmail.com> / 0956242509

Assist. Prof. in Statistics, National Chiao-Tung University
Music Director for dramAcappella Theater
<https://www.facebook.com/dramAcappella>
Composer, Taipei Philaharmonic Chorus <http://www.tpf.org.tw/index.php>
Gamer Consultant and Designer, Swan Panasia Co., Ltd.
<http://www.swanpanasia.com/public/indexs.php?cont=1&lng=ct&flash=on>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

[R-pkg-devel] Problem on rand() in packaging

2019-02-20 Thread Chu-Lan Kao
Dear Sir,

I've got a Rcpp code in the form like the following in my uploaded package:

inline double runiforminline(){
  std::default_random_engine generator(rand());
  std::uniform_real_distribution distribution (0.0, 1.0);
  return (distribution(generator));
}

But as I uploaded, the system ask me to remove rand(). Various attempt has
been tried, but all of them result in no randomness at all. Not sure how to
fix it. Kindly appreciate all helps.

Sincerely,

Chu-Lan Kao ( 高竹嵐 Michael )
*http://chulankao.blogspot.com / <http://chulankao.blogspot.com/>*
chulan...@gmail.com
<http://chulankao.blogspot.com%20/%20chulan...@gmail.com> / 0956242509

Assist. Prof. in Statistics, National Chiao-Tung University
Music Director for dramAcappella Theater
<https://www.facebook.com/dramAcappella>
Composer, Taipei Philaharmonic Chorus <http://www.tpf.org.tw/index.php>
Gamer Consultant and Designer

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel