{"action":"created","issue":{"url":"https://api.github.com/repos/RcppCore/Rcpp/issues/241","labels_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/241/comments","events_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/241/events","html_url":"https://github.com/RcppCore/Rcpp/issues/241","id":56009422,"number":241,"title":"enterRNGScope gets fooled by interuption","user":{"login":"romainfrancois","id":2625526,"avatar_url":"https://avatars.githubusercontent.com/u/2625526?v=3","gravatar_id":"","url":"https://api.github.com/users/romainfrancois","html_url":"https://github.com/romainfrancois","followers_url":"https://api.github.com/users/romainfrancois/followers","following_url":"https://api.github.com/users/romainfrancois/following{/other_user}","gists_url":"https://api.github.com/users/romainfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/romainfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainfrancois/subscriptions","organizations_url":"https://api.github.com/users/romainfrancois/orgs","repos_url":"https://api.github.com/users/romainfrancois/repos","events_url":"https://api.github.com/users/romainfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/romainfrancois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T09:01:35Z","updated_at":"2015-01-30T12:57:03Z","closed_at":null,"body":"See http://stackoverflow.com/questions/28227971/whats-causing-this-strange-random-number-generator-behaviour/28232296#28232296 and hadley/plyr#229\r\n\r\nInteruption fools the business of `enterRNGscope` and `exitRNGScope`. \r\n\r\nOne possible workaround would be for `enterRNGScope` to look up the R frames and identify `Rcpp` function depth, rather than relying on a global setting like `RNGScopeCounter`. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RcppCore/Rcpp/issues/comments/72196891","html_url":"https://github.com/RcppCore/Rcpp/issues/241#issuecomment-72196891","issue_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/241","id":72196891,"user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T12:57:03Z","updated_at":"2015-01-30T12:57:03Z","body":"I saw the SO post yesterday and shrugged; this is pretty much user error to me.  The RNG also fails when you pull the power cable ....  "}}