{"action":"opened","issue":{"url":"https://api.github.com/repos/metacran/description/issues/8","labels_url":"https://api.github.com/repos/metacran/description/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/metacran/description/issues/8/comments","events_url":"https://api.github.com/repos/metacran/description/issues/8/events","html_url":"https://github.com/metacran/description/issues/8","id":114360342,"number":8,"title":"Validation (again)","user":{"login":"gaborcsardi","id":660288,"avatar_url":"https://avatars.githubusercontent.com/u/660288?v=3","gravatar_id":"","url":"https://api.github.com/users/gaborcsardi","html_url":"https://github.com/gaborcsardi","followers_url":"https://api.github.com/users/gaborcsardi/followers","following_url":"https://api.github.com/users/gaborcsardi/following{/other_user}","gists_url":"https://api.github.com/users/gaborcsardi/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborcsardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborcsardi/subscriptions","organizations_url":"https://api.github.com/users/gaborcsardi/orgs","repos_url":"https://api.github.com/users/gaborcsardi/repos","events_url":"https://api.github.com/users/gaborcsardi/events{/privacy}","received_events_url":"https://api.github.com/users/gaborcsardi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T21:37:02Z","updated_at":"2015-10-30T21:37:02Z","closed_at":null,"body":"So, the thing is, some fields are hard to validate. Take the `License` field as an example. In https://github.com/wch/r-source/blob/trunk/src/library/tools/R/license.R ~800 lines of code deal with this.\r\n\r\nSo I am unsure what to do. Options are:\r\n\r\n1. Do not validate fields properly, just do some simple syntax checks. `R CMD check` will catch the rest.\r\n2. Copy over the code from `tools`. :/\r\n3. Call the (non-exported) call in `tools`\r\n4. Reimplement the checks that are in `tools`.\r\n5. Ask CRAN (Kurt) to export some of these functions from `tools`.\r\n\r\n1-4 are all bad options, for various reasons. 5 is unlikely to be successful. Right now I am leaning towards 3.\r\n\r\n@hadley what do you think?"}}