{"action":"created","comment":{"url":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/comments/22524571","id":22524571,"diff_hunk":"@@ -1,91 +1,251 @@\n-\n-CorrelationBayesian <- function(dataset=NULL, options, perform=\"run\", callback=function(...) 0, ...) {\n-\n-\tif (is.null(dataset))\n-\t{\n+CorrelationBayesian <- function(dataset=NULL, options, perform=\"run\", \n+\t\t\t\t\t\t\t\tcallback=function(...) 0, ...) {\n+\t# dataset is data.frame\n+\t# options is a list\n+\t# \n+\tif (is.null(dataset)) {\n \t\tif (perform == \"run\") {\n-\t\t\n \t\t\tif (options$missingValues == \"excludeListwise\") {\n-\t\t\n-\t\t\t\tdataset <- .readDataSetToEnd(columns.as.numeric=options$variables, exclude.na.listwise=options$variables)\n-\t\t\t\t\n-\t\t\t} else {\n-\n-\t\t\t\tdataset <- .readDataSetToEnd(columns.as.numeric=options$variables)\n+\t\t\t\tdataset <- \n+\t\t\t\t\t.readDataSetToEnd(columns.as.numeric=options$variables, \n+\t\t\t\t\t\t\t\t\t  exclude.na.listwise=options$variables)\n+\t\t\t} else { \n+\t\t\t\tdataset <- \n+\t\t\t\t\t.readDataSetToEnd(columns.as.numeric=options$variables)\n \t\t\t}\n-\t\t\t\n \t\t} else {\n-\t\t\n-\t\t\tdataset <- .readDataSetHeader(columns.as.numeric=options$variables)\n+\t\t\tdataset <- \n+\t\t\t\t.readDataSetHeader(columns.as.numeric=options$variables)\n \t\t}\n+\t} else {\n+\t\tdataset <- .vdf(dataset, columns.as.numeric=options$variables)\n \t}\n-\n-\tresults <- list()\n \t\n+\tresults <- list()\n+\tprint(results)","path":"JASP-Engine/JASP/R/correlationbayesian.R","position":42,"original_position":42,"commit_id":"96b50428425371b4f222403c26f034f29a23479d","original_commit_id":"96b50428425371b4f222403c26f034f29a23479d","user":{"login":"jonathon-love","id":3240247,"avatar_url":"https://avatars.githubusercontent.com/u/3240247?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathon-love","html_url":"https://github.com/jonathon-love","followers_url":"https://api.github.com/users/jonathon-love/followers","following_url":"https://api.github.com/users/jonathon-love/following{/other_user}","gists_url":"https://api.github.com/users/jonathon-love/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathon-love/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathon-love/subscriptions","organizations_url":"https://api.github.com/users/jonathon-love/orgs","repos_url":"https://api.github.com/users/jonathon-love/repos","events_url":"https://api.github.com/users/jonathon-love/events{/privacy}","received_events_url":"https://api.github.com/users/jonathon-love/received_events","type":"User","site_admin":false},"body":"ooh, can we have these print statements removed.","created_at":"2015-01-06T14:22:59Z","updated_at":"2015-01-06T14:22:59Z","html_url":"https://github.com/jasp-stats/jasp-desktop/pull/136#discussion_r22524571","pull_request_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/comments/22524571"},"html":{"href":"https://github.com/jasp-stats/jasp-desktop/pull/136#discussion_r22524571"},"pull_request":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136","id":26889405,"html_url":"https://github.com/jasp-stats/jasp-desktop/pull/136","diff_url":"https://github.com/jasp-stats/jasp-desktop/pull/136.diff","patch_url":"https://github.com/jasp-stats/jasp-desktop/pull/136.patch","issue_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/issues/136","number":136,"state":"open","locked":false,"title":"BayesCor0.1","user":{"login":"AlexanderLyNL","id":10271675,"avatar_url":"https://avatars.githubusercontent.com/u/10271675?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderLyNL","html_url":"https://github.com/AlexanderLyNL","followers_url":"https://api.github.com/users/AlexanderLyNL/followers","following_url":"https://api.github.com/users/AlexanderLyNL/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderLyNL/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderLyNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderLyNL/subscriptions","organizations_url":"https://api.github.com/users/AlexanderLyNL/orgs","repos_url":"https://api.github.com/users/AlexanderLyNL/repos","events_url":"https://api.github.com/users/AlexanderLyNL/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderLyNL/received_events","type":"User","site_admin":false},"body":"Needs to polish UI","created_at":"2015-01-06T13:46:31Z","updated_at":"2015-01-06T14:22:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f4ba7b5f57b66c52349ccaa3851a6cce056dd18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136/commits","review_comments_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136/comments","review_comment_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/issues/136/comments","statuses_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/statuses/96b50428425371b4f222403c26f034f29a23479d","head":{"label":"AlexanderLyNL:development","ref":"development","sha":"96b50428425371b4f222403c26f034f29a23479d","user":{"login":"AlexanderLyNL","id":10271675,"avatar_url":"https://avatars.githubusercontent.com/u/10271675?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderLyNL","html_url":"https://github.com/AlexanderLyNL","followers_url":"https://api.github.com/users/AlexanderLyNL/followers","following_url":"https://api.github.com/users/AlexanderLyNL/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderLyNL/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderLyNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderLyNL/subscriptions","organizations_url":"https://api.github.com/users/AlexanderLyNL/orgs","repos_url":"https://api.github.com/users/AlexanderLyNL/repos","events_url":"https://api.github.com/users/AlexanderLyNL/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderLyNL/received_events","type":"User","site_admin":false},"repo":{"id":28346988,"name":"jasp-desktop","full_name":"AlexanderLyNL/jasp-desktop","owner":{"login":"AlexanderLyNL","id":10271675,"avatar_url":"https://avatars.githubusercontent.com/u/10271675?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderLyNL","html_url":"https://github.com/AlexanderLyNL","followers_url":"https://api.github.com/users/AlexanderLyNL/followers","following_url":"https://api.github.com/users/AlexanderLyNL/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderLyNL/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderLyNL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderLyNL/subscriptions","organizations_url":"https://api.github.com/users/AlexanderLyNL/orgs","repos_url":"https://api.github.com/users/AlexanderLyNL/repos","events_url":"https://api.github.com/users/AlexanderLyNL/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderLyNL/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexanderLyNL/jasp-desktop","description":"JASP aims to be a complete statistical package for both Bayesian and Frequentist statistical methods, that is easy to use and familiar to users of SPSS","fork":true,"url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop","forks_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/forks","keys_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/teams","hooks_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/hooks","issue_events_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/events","assignees_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/tags","blobs_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/languages","stargazers_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/stargazers","contributors_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/contributors","subscribers_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/subscribers","subscription_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/subscription","commits_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/issues/comments/{number}","contents_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/merges","archive_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/downloads","issues_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/labels{/name}","releases_url":"https://api.github.com/repos/AlexanderLyNL/jasp-desktop/releases{/id}","created_at":"2014-12-22T16:23:33Z","updated_at":"2015-01-06T13:52:04Z","pushed_at":"2015-01-06T13:52:04Z","git_url":"git://github.com/AlexanderLyNL/jasp-desktop.git","ssh_url":"git@github.com:AlexanderLyNL/jasp-desktop.git","clone_url":"https://github.com/AlexanderLyNL/jasp-desktop.git","svn_url":"https://github.com/AlexanderLyNL/jasp-desktop","homepage":"jasp-stats.org","size":2364,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"jasp-stats:development","ref":"development","sha":"d50fa81373841324d47e00390a2b317489d5525c","user":{"login":"jasp-stats","id":4589101,"avatar_url":"https://avatars.githubusercontent.com/u/4589101?v=3","gravatar_id":"","url":"https://api.github.com/users/jasp-stats","html_url":"https://github.com/jasp-stats","followers_url":"https://api.github.com/users/jasp-stats/followers","following_url":"https://api.github.com/users/jasp-stats/following{/other_user}","gists_url":"https://api.github.com/users/jasp-stats/gists{/gist_id}","starred_url":"https://api.github.com/users/jasp-stats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasp-stats/subscriptions","organizations_url":"https://api.github.com/users/jasp-stats/orgs","repos_url":"https://api.github.com/users/jasp-stats/repos","events_url":"https://api.github.com/users/jasp-stats/events{/privacy}","received_events_url":"https://api.github.com/users/jasp-stats/received_events","type":"Organization","site_admin":false},"repo":{"id":10426982,"name":"jasp-desktop","full_name":"jasp-stats/jasp-desktop","owner":{"login":"jasp-stats","id":4589101,"avatar_url":"https://avatars.githubusercontent.com/u/4589101?v=3","gravatar_id":"","url":"https://api.github.com/users/jasp-stats","html_url":"https://github.com/jasp-stats","followers_url":"https://api.github.com/users/jasp-stats/followers","following_url":"https://api.github.com/users/jasp-stats/following{/other_user}","gists_url":"https://api.github.com/users/jasp-stats/gists{/gist_id}","starred_url":"https://api.github.com/users/jasp-stats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasp-stats/subscriptions","organizations_url":"https://api.github.com/users/jasp-stats/orgs","repos_url":"https://api.github.com/users/jasp-stats/repos","events_url":"https://api.github.com/users/jasp-stats/events{/privacy}","received_events_url":"https://api.github.com/users/jasp-stats/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jasp-stats/jasp-desktop","description":"JASP aims to be a complete statistical package for both Bayesian and Frequentist statistical methods, that is easy to use and familiar to users of SPSS","fork":false,"url":"https://api.github.com/repos/jasp-stats/jasp-desktop","forks_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/forks","keys_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/teams","hooks_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/hooks","issue_events_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/events","assignees_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/tags","blobs_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/languages","stargazers_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/stargazers","contributors_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/contributors","subscribers_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/subscribers","subscription_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/subscription","commits_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/issues/comments/{number}","contents_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/merges","archive_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/downloads","issues_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/labels{/name}","releases_url":"https://api.github.com/repos/jasp-stats/jasp-desktop/releases{/id}","created_at":"2013-06-01T19:05:12Z","updated_at":"2015-01-06T14:00:38Z","pushed_at":"2015-01-06T14:00:38Z","git_url":"git://github.com/jasp-stats/jasp-desktop.git","ssh_url":"git@github.com:jasp-stats/jasp-desktop.git","clone_url":"https://github.com/jasp-stats/jasp-desktop.git","svn_url":"https://github.com/jasp-stats/jasp-desktop","homepage":"jasp-stats.org","size":4211,"stargazers_count":23,"watchers_count":23,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":22,"forks":16,"open_issues":22,"watchers":23,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136"},"html":{"href":"https://github.com/jasp-stats/jasp-desktop/pull/136"},"issue":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/issues/136"},"comments":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/jasp-stats/jasp-desktop/statuses/96b50428425371b4f222403c26f034f29a23479d"}}}}