{"action":"created","issue":{"url":"https://api.github.com/repos/openml/openml-r/issues/318","repository_url":"https://api.github.com/repos/openml/openml-r","labels_url":"https://api.github.com/repos/openml/openml-r/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/openml/openml-r/issues/318/comments","events_url":"https://api.github.com/repos/openml/openml-r/issues/318/events","html_url":"https://github.com/openml/openml-r/issues/318","id":210811546,"number":318,"title":"some mlr learner (eg. kknn) do not work","user":{"login":"ja-thomas","id":7561944,"avatar_url":"https://avatars2.githubusercontent.com/u/7561944?v=3","gravatar_id":"","url":"https://api.github.com/users/ja-thomas","html_url":"https://github.com/ja-thomas","followers_url":"https://api.github.com/users/ja-thomas/followers","following_url":"https://api.github.com/users/ja-thomas/following{/other_user}","gists_url":"https://api.github.com/users/ja-thomas/gists{/gist_id}","starred_url":"https://api.github.com/users/ja-thomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ja-thomas/subscriptions","organizations_url":"https://api.github.com/users/ja-thomas/orgs","repos_url":"https://api.github.com/users/ja-thomas/repos","events_url":"https://api.github.com/users/ja-thomas/events{/privacy}","received_events_url":"https://api.github.com/users/ja-thomas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-28T15:01:30Z","updated_at":"2017-03-01T12:39:31Z","closed_at":"2017-03-01T12:39:11Z","body":"```\r\n> runTaskMlr(getOMLTask(3), makeLearner(\"classif.kknn\"))\r\nTask '3' file 'task.xml' found in cache.\r\nTask '3' file 'datasplits.arff' found in cache.\r\nData '3' file 'description.xml' found in cache.\r\nData '3' file 'dataset.arff' found in cache.\r\nError in packageVersion(x) : package ‘!kknn’ not found\r\n```\r\n\r\nProblem is here:\r\n\r\n```\r\n> OpenML:::getDependencies#(makeLearner(\"classif.kknn\"))\r\nfunction (lrn) \r\n{\r\n    lrn.package = ifelse(stri_startswith_fixed(\"!\", lrn$package), \r\n        stri_replace_first_fixed(lrn$package, \"!\", \"\"), lrn$package)\r\n    dependencies = if (\"mlr\" %in% lrn.package) \r\n        lrn.package\r\n    else c(\"mlr\", lrn.package)\r\n```\r\n\r\nthe first line should be `stri_startswith_fixed(lrn$package, \"!\")`\r\n"},"comment":{"url":"https://api.github.com/repos/openml/openml-r/issues/comments/283329411","html_url":"https://github.com/openml/openml-r/issues/318#issuecomment-283329411","issue_url":"https://api.github.com/repos/openml/openml-r/issues/318","id":283329411,"user":{"login":"giuseppec","id":4238748,"avatar_url":"https://avatars2.githubusercontent.com/u/4238748?v=3","gravatar_id":"","url":"https://api.github.com/users/giuseppec","html_url":"https://github.com/giuseppec","followers_url":"https://api.github.com/users/giuseppec/followers","following_url":"https://api.github.com/users/giuseppec/following{/other_user}","gists_url":"https://api.github.com/users/giuseppec/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppec/subscriptions","organizations_url":"https://api.github.com/users/giuseppec/orgs","repos_url":"https://api.github.com/users/giuseppec/repos","events_url":"https://api.github.com/users/giuseppec/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppec/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T12:39:31Z","updated_at":"2017-03-01T12:39:31Z","body":"Fixed in https://github.com/openml/openml-r/pull/319"}}
{"actor":{"display_login":"giuseppec"}}