{"action":"closed","issue":{"url":"https://api.github.com/repos/lucasmation/microdadosBrasil/issues/40","repository_url":"https://api.github.com/repos/lucasmation/microdadosBrasil","labels_url":"https://api.github.com/repos/lucasmation/microdadosBrasil/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/lucasmation/microdadosBrasil/issues/40/comments","events_url":"https://api.github.com/repos/lucasmation/microdadosBrasil/issues/40/events","html_url":"https://github.com/lucasmation/microdadosBrasil/issues/40","id":165075704,"number":40,"title":"add README_POR file","user":{"login":"lucasmation","id":1426312,"avatar_url":"https://avatars.githubusercontent.com/u/1426312?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasmation","html_url":"https://github.com/lucasmation","followers_url":"https://api.github.com/users/lucasmation/followers","following_url":"https://api.github.com/users/lucasmation/following{/other_user}","gists_url":"https://api.github.com/users/lucasmation/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasmation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasmation/subscriptions","organizations_url":"https://api.github.com/users/lucasmation/orgs","repos_url":"https://api.github.com/users/lucasmation/repos","events_url":"https://api.github.com/users/lucasmation/events{/privacy}","received_events_url":"https://api.github.com/users/lucasmation/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T13:07:43Z","updated_at":"2016-07-12T15:34:39Z","closed_at":"2016-07-12T15:34:38Z","body":"It would be nice to add a README_PT file, to have the documentation in Portuguese. \r\n\r\nWe need to check how to do that with devetools\r\n\r\nPerhaps one solution is to create a function similar to use_readme_rmd (see code bellow), but changing every README for README_PT\r\n\r\nplease check if this could work\r\n\r\n\r\nuse_readme_rmd\r\nfunction (pkg = \".\") \r\n{\r\n    pkg <- as.package(pkg)\r\n    use_template(\"README.Rmd\", ignore = TRUE, open = TRUE, pkg = pkg)\r\n    use_build_ignore(\"^README-.*\\\\.png$\", escape = FALSE, pkg = pkg)\r\n    if (uses_git(pkg$path) && !file.exists(pkg$path, \".git\", \r\n        \"hooks\", \"pre-commit\")) {\r\n        message(\"* Adding pre-commit hook\")\r\n        use_git_hook(\"pre-commit\", render_template(\"readme-rmd-pre-commit.sh\"), \r\n            pkg = pkg)\r\n    }\r\n    invisible(TRUE)\r\n}\r\n\r\n\r\n"}}
{"actor":{"display_login":"lucasmation"}}