{"id":18489737,"url":"https://github.com/abicky/packager","last_synced_at":"2025-05-13T23:34:48.340Z","repository":{"id":139218489,"uuid":"12513876","full_name":"abicky/packageR","owner":"abicky","description":"Import R scripts as a package","archived":false,"fork":false,"pushed_at":"2013-09-01T00:56:55.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-12T06:37:57.434Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","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/abicky.png","metadata":{"files":{"readme":"README.md","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":"2013-09-01T00:54:40.000Z","updated_at":"2014-10-01T12:52:29.000Z","dependencies_parsed_at":"2023-03-14T14:46:08.323Z","dependency_job_id":null,"html_url":"https://github.com/abicky/packageR","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2FpackageR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2FpackageR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2FpackageR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abicky%2FpackageR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abicky","download_url":"https://codeload.github.com/abicky/packageR/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043218,"owners_count":22004912,"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-11-06T12:57:41.954Z","updated_at":"2025-05-13T23:34:48.250Z","avatar_url":"https://github.com/abicky.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"packageR -- Import R scripts as a package\n=========================================\n\nDescription\n-----------\n\nThis package provides a mechanism to import R scripts as a package, in other words, with namespace.\n\n\nInstallation\n------------\n\nFirst, install `namespace` package used in `packageR`.\n\n    $ Rscript -e 'install.packages(\"namespace\")'\n\nThen, clone the repository and install the package.\n\n    $ git clone git@github.com:abicky/packageR.git\n    $ R CMD INSTALL packageR\n\n\nUsage\n-----\n\n    import(files, as)\n\nSee also `?import`\n\nYou have to call `export` function to export the variables in the specified scripts like below:\n\n    f \u003c- function() print(\"function f\")\n    export(f)\n\n\nExamples\n--------\n\n    files \u003c- system.file(\"examples\", c(\"public.R\", \"private.R\"), package = \"packageR\")\n    import(files, \"foo\")\n    # exported function\n    foo::f()\n    # unexported function\n    foo:::.f()\n    unloadNamespace(\"foo\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabicky%2Fpackager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabicky%2Fpackager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabicky%2Fpackager/lists"}