Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Methods in Rcpp should stop if string parameter is not among allowed ones #166

Open
ncordon opened this issue Feb 3, 2019 · 1 comment
Assignees

Comments

@ncordon
Copy link
Collaborator

ncordon commented Feb 3, 2019

For example, for markovchainFit we have the parameter method, which should only take values mle, bootstrap, laplace or map, but that is not checked and the following code will give an unexpected output:

c1<-c("a","b","c","c","e") 
c2<-c("a","b","d","e") 
c3<-c("a","c","b","c","d") 
c4<-c("a","b","b","d","b","c","d","e") 
c5<-c("a","c","c","d","d") 
c6<-c("a","c","d","d","b","b","e") 

mylist<-list(c1,c2,c3,c4,c5,c6)
mylistMc<-markovchainFit(data=mylist, method = "other")
@ncordon ncordon changed the title Methods in Rcpp should warn if string parameter is not among allowed ones Methods in Rcpp should stop if string parameter is not among allowed ones Feb 3, 2019
@ncordon ncordon self-assigned this Feb 4, 2019
@ncordon
Copy link
Collaborator Author

ncordon commented Feb 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant