{"id":16036557,"url":"https://github.com/dgrtwo/sweave2knitr","last_synced_at":"2025-03-18T04:30:23.828Z","repository":{"id":57472718,"uuid":"5208451","full_name":"dgrtwo/Sweave2knitr","owner":"dgrtwo","description":"Convert Sweave LaTeX documents to work with knitr.","archived":false,"fork":false,"pushed_at":"2014-04-08T19:23:55.000Z","size":126,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T06:55:17.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgrtwo.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-27T19:18:23.000Z","updated_at":"2016-09-05T00:57:29.000Z","dependencies_parsed_at":"2022-09-19T09:30:26.766Z","dependency_job_id":null,"html_url":"https://github.com/dgrtwo/Sweave2knitr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2FSweave2knitr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2FSweave2knitr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2FSweave2knitr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2FSweave2knitr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgrtwo","download_url":"https://codeload.github.com/dgrtwo/Sweave2knitr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902241,"owners_count":20366258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T22:05:35.854Z","updated_at":"2025-03-18T04:30:23.524Z","avatar_url":"https://github.com/dgrtwo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sweave2knitr\n============\n\n*ATTENTION*: This package is now **deprecated**- instead use the Sweave2knitr function built into knitr (described [here](http://yihui.name/knitr/demo/sweave/)).\n\nSweave2knitr is a simple Python script that helps to convert [Sweave](http://www.statistik.lmu.de/~leisch/Sweave/) LaTeX documents to be instead compatible with Yihui Xie's [knitr](http://yihui.name/knitr/) package. It is based on and inspired by Jeromy Anglim's blog entry [ Converting Sweave LaTeX to knitr LaTeX: A case study ](http://jeromyanglim.blogspot.com/2012/06/converting-sweave-latex-to-knitr-latex.html).\n\n*Warning:* This conversion is not an exact science. While this catches some of the most common issues faced when converting from Sweave to LaTeX, there are a virtually infinite number of special cases that will have to be handled. Furthermore, this is a very early version that has been tested on only a few documents. Try it on your own Sweave documents: contributions are *strongly* encouraged!\n\nInstallation\n------------\n\nYou can install Sweave2knitr from the [Python Package Index](http://pypi.python.org/pypi) using:\n\n    easy_install Sweave2knitr\n\nor using pip:\n\n    pip install Sweave2knitr\n\n(On Linux or Macs, you might need to add `sudo` to the start of each command). You can also install it from source:\n\n    python setup.py build\n    python setup.py install\n\nUsage\n-----\n\nIf `infile.Rnw` is your Sweave LaTeX file, use\n\n    Sweave2knitr infile.Rnw outfile.nw\n\nYou can then use\n\n    Rscript -e \"library(knitr); knit('outfile.nw', 'outfile.tex')\"\n    pdflatex outfile.tex\n\nTo create the .tex file and turn it into a PDF.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrtwo%2Fsweave2knitr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgrtwo%2Fsweave2knitr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrtwo%2Fsweave2knitr/lists"}