{"action":"opened","issue":{"url":"https://api.github.com/repos/att/rcloud/issues/1412","labels_url":"https://api.github.com/repos/att/rcloud/issues/1412/labels{/name}","comments_url":"https://api.github.com/repos/att/rcloud/issues/1412/comments","events_url":"https://api.github.com/repos/att/rcloud/issues/1412/events","html_url":"https://github.com/att/rcloud/issues/1412","id":67855025,"number":1412,"title":"do not rely on github for language tagging","user":{"login":"gordonwoodhull","id":1366709,"avatar_url":"https://avatars.githubusercontent.com/u/1366709?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwoodhull","html_url":"https://github.com/gordonwoodhull","followers_url":"https://api.github.com/users/gordonwoodhull/followers","following_url":"https://api.github.com/users/gordonwoodhull/following{/other_user}","gists_url":"https://api.github.com/users/gordonwoodhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwoodhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwoodhull/subscriptions","organizations_url":"https://api.github.com/users/gordonwoodhull/orgs","repos_url":"https://api.github.com/users/gordonwoodhull/repos","events_url":"https://api.github.com/users/gordonwoodhull/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwoodhull/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/att/rcloud/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"gordonwoodhull","id":1366709,"avatar_url":"https://avatars.githubusercontent.com/u/1366709?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwoodhull","html_url":"https://github.com/gordonwoodhull","followers_url":"https://api.github.com/users/gordonwoodhull/followers","following_url":"https://api.github.com/users/gordonwoodhull/following{/other_user}","gists_url":"https://api.github.com/users/gordonwoodhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwoodhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwoodhull/subscriptions","organizations_url":"https://api.github.com/users/gordonwoodhull/orgs","repos_url":"https://api.github.com/users/gordonwoodhull/repos","events_url":"https://api.github.com/users/gordonwoodhull/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwoodhull/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/att/rcloud/milestones/19","html_url":"https://github.com/att/rcloud/milestones/1.3.3","labels_url":"https://api.github.com/repos/att/rcloud/milestones/19/labels","id":1063473,"number":19,"title":"1.3.3","description":"","creator":{"login":"gordonwoodhull","id":1366709,"avatar_url":"https://avatars.githubusercontent.com/u/1366709?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwoodhull","html_url":"https://github.com/gordonwoodhull","followers_url":"https://api.github.com/users/gordonwoodhull/followers","following_url":"https://api.github.com/users/gordonwoodhull/following{/other_user}","gists_url":"https://api.github.com/users/gordonwoodhull/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwoodhull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwoodhull/subscriptions","organizations_url":"https://api.github.com/users/gordonwoodhull/orgs","repos_url":"https://api.github.com/users/gordonwoodhull/repos","events_url":"https://api.github.com/users/gordonwoodhull/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwoodhull/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-04-12T01:08:28Z","updated_at":"2015-04-12T01:10:02Z","due_on":"2015-04-18T04:00:00Z","closed_at":null},"comments":0,"created_at":"2015-04-12T01:10:02Z","updated_at":"2015-04-12T01:10:02Z","closed_at":null,"body":"@s-u writes:\r\n\r\n> The public github is now screwing up language tagging - it tags .R cells under some circumstances as \"Rebol\" instead of \"R\" (e.g. if you have an 1+1 cell) - which wreaks chaos on RCloud. I have a quick hack below, but I think we should be ignoring the language tag and use our own detection based on extension registration through the plugins.\r\n\r\n```\r\ndiff --git a/rcloud.support/R/rcloud.support.R b/rcloud.support/R/rcloud.support.R\r\nindex 6690e4a..bfa4e9d 100644\r\n--- a/rcloud.support/R/rcloud.support.R\r\n+++ b/rcloud.support/R/rcloud.support.R\r\n@@ -24,6 +24,8 @@ rcloud.augment.notebook <- function(res) {\r\n   names(version2tag) <- versions\r\n   version2tag <- Filter(Negate(is.null), version2tag)\r\n\r\n+    if (length(res$content$files)) res$content$files <- lapply(res$content$files, function(o) { if (o$language == \"Rebol\") o$language <- \"R\"; o })\r\n+\r\n   if(length(hist)>0)\r\n     for(i in 1:length(hist)) {\r\n       tag <- version2tag[[hist[[i]]$version]]\r\n```"}}