{"action":"created","issue":{"url":"https://api.github.com/repos/jvbraun/AlgDesign/issues/1","labels_url":"https://api.github.com/repos/jvbraun/AlgDesign/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jvbraun/AlgDesign/issues/1/comments","events_url":"https://api.github.com/repos/jvbraun/AlgDesign/issues/1/events","html_url":"https://github.com/jvbraun/AlgDesign/issues/1","id":104588762,"number":1,"title":"Issue for AlgDesign - segfault memory not mapped","user":{"login":"vnijs","id":2998956,"avatar_url":"https://avatars.githubusercontent.com/u/2998956?v=3","gravatar_id":"","url":"https://api.github.com/users/vnijs","html_url":"https://github.com/vnijs","followers_url":"https://api.github.com/users/vnijs/followers","following_url":"https://api.github.com/users/vnijs/following{/other_user}","gists_url":"https://api.github.com/users/vnijs/gists{/gist_id}","starred_url":"https://api.github.com/users/vnijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnijs/subscriptions","organizations_url":"https://api.github.com/users/vnijs/orgs","repos_url":"https://api.github.com/users/vnijs/repos","events_url":"https://api.github.com/users/vnijs/events{/privacy}","received_events_url":"https://api.github.com/users/vnijs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T23:02:24Z","updated_at":"2015-09-03T05:37:12Z","closed_at":null,"body":"I have been using the AlgDesign package for a while for an R/Shiny package (http://vnijs.github.io/radiant/). I have been getting error messages from Travis CI (Linux) that there are memory issues related to AlgDesign (see pasted output below). Works fine on Mac and Windows.\r\n\r\nAny idea what might be going on?\r\n\r\n> base::assign(\".ptime\", proc.time(), pos = \"CheckExEnv\")\r\n> ### Name: summary.conjoint_profiles\r\n> ### Title: Summary method for the conjoint_profiles function\r\n> ### Aliases: summary.conjoint_profiles\r\n> \r\n> ### ** Examples\r\n> \r\n> cp <<- c(\"price = c('$10','$13','$16')\", \"sight = c('Staggered','Not Staggered')\",\r\n+        \"comfort = c('Average no cupholder','Average cupholder','Large cupholder')\",\r\n+        \"audio.visual = c('Small plain','Large plain','Large digital')\",\r\n+        \"food = c('No food','Hot dogs and popcorn','Gourmet food')\")\r\n> result <- conjoint_profiles(\"cp\")\r\n\r\n *** caught segfault ***\r\naddress 0x200000012, cause 'memory not mapped'\r\n\r\nTraceback:\r\n 1: model.matrix.default(frml, data, ...)\r\n 2: model.matrix.formula(frml, data)\r\n 3: model.matrix(frml, data)\r\n 4: optFederov(data = experiment, nTrials = i, maxIteration = 1000)\r\n 5: ff_design(., itt)\r\n 6: function_list[[k]](value)\r\n 7: withVisible(function_list[[k]](value))\r\n 8: freduce(value, `_function_list`)\r\n 9: `_fseq`(`_lhs`)\r\n10: eval(expr, envir, enclos)\r\n11: eval(quote(`_fseq`(`_lhs`)), env, env)\r\n12: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))\r\n13: sample(cap_attr) %>% ff_design(itt)\r\n14: conjoint_profiles(\"cp\")\r\naborting ...\r\nSegmentation fault\r\n** found \\donttest examples: check also with --run-donttest\r\n* checking for unstated dependencies in â€˜testsâ€™ ... OK\r\n* checking tests ... OK\r\n  Running â€˜testthat.Râ€™\r\n* checking PDF version of manual ... OK\r\n* DONE\r\nStatus: 1 ERROR, 1 WARNING, 3 NOTEs\r\ntravis_time:end:06ae5a00:start=1441050818232921411,finish=1441050818294261524,duration=61340113\r\n\u001B[0Ktravis_time:start:119e4b58\r\n\u001B[0K$ for name in $(find \"${RCHECK_DIR}\" -type f -name \"*fail\"); do echo \">>> Filename: ${name} <<<\"; cat ${name}; done\r\ntravis_time:end:119e4b58:start=1441050818301468471,finish=1441050818313066348,duration=11597877\r\n\u001B[0KR CMD check failed"},"comment":{"url":"https://api.github.com/repos/jvbraun/AlgDesign/issues/comments/137339265","html_url":"https://github.com/jvbraun/AlgDesign/issues/1#issuecomment-137339265","issue_url":"https://api.github.com/repos/jvbraun/AlgDesign/issues/1","id":137339265,"user":{"login":"vnijs","id":2998956,"avatar_url":"https://avatars.githubusercontent.com/u/2998956?v=3","gravatar_id":"","url":"https://api.github.com/users/vnijs","html_url":"https://github.com/vnijs","followers_url":"https://api.github.com/users/vnijs/followers","following_url":"https://api.github.com/users/vnijs/following{/other_user}","gists_url":"https://api.github.com/users/vnijs/gists{/gist_id}","starred_url":"https://api.github.com/users/vnijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnijs/subscriptions","organizations_url":"https://api.github.com/users/vnijs/orgs","repos_url":"https://api.github.com/users/vnijs/repos","events_url":"https://api.github.com/users/vnijs/events{/privacy}","received_events_url":"https://api.github.com/users/vnijs/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T05:37:12Z","updated_at":"2015-09-03T05:37:12Z","body":"Thanks for taking a look @jvbraun. Can you reproduce the problem? When I run the examples on Mac or Windows I don't have any problems. The setup for the example is indeed pretty basic so I'm surprised it causes issues at all."}}