{"id":13858287,"url":"https://github.com/ThinkR-open/prompt","last_synced_at":"2025-07-13T23:31:52.729Z","repository":{"id":69754291,"uuid":"92720730","full_name":"ThinkR-open/prompt","owner":"ThinkR-open","description":"Dynamic prompt","archived":true,"fork":false,"pushed_at":"2017-08-29T13:43:30.000Z","size":107,"stargazers_count":28,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-22T16:39:21.124Z","etag":null,"topics":["console","prompt","r"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThinkR-open.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-05-29T08:26:17.000Z","updated_at":"2024-01-04T16:14:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"6655b748-8b4c-4b9b-9409-7d220d16f16c","html_url":"https://github.com/ThinkR-open/prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThinkR-open/prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fprompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fprompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fprompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fprompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThinkR-open","download_url":"https://codeload.github.com/ThinkR-open/prompt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Fprompt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220640,"owners_count":23729858,"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":["console","prompt","r"],"created_at":"2024-08-05T03:02:02.888Z","updated_at":"2025-07-13T23:31:47.717Z","avatar_url":"https://github.com/ThinkR-open.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\ntitle: \"prompt\"\nauthor: Romain Francois\noutput:\n  md_document:\n    variant: markdown_github\n---\n\n```{r, echo=FALSE, print=FALSE}\nlibrary(\"prompt\")\n```\n\n![](prompt.png)\n\n# prompt\n\nDynamic Prompt. \n\n# Usage\n\nThis use `glue` to expand the function passed in, with the follwing bindings available: \n\n - `t` the current time, in format \"%H:%M:%S\"\n - `v` the version of R\n - `V` the version of R, including the svn revision\n - `u` the user name\n - `g` the github user name\n - `m` the memory currently used by R\n - `w` the current working directory\n \n```{r eval = FALSE}\nset_prompt( ~ \"{t}\u003e \" )\nset_prompt( ~ \"{w}\u003e \" )\nset_prompt( ~ \"[{m}] {t} {w}\u003e \")\n```\n\nYou can use `expand_prompt` to experiment : \n\n```{r}\nexpand_prompt( ~ \"{t}\u003e \" )\nexpand_prompt( ~ \"{w}\u003e \" )\nexpand_prompt( ~ \"[{m}] {t} {w}\u003e \")\n```\n \n## Installation\n\n```\ninstall_github( \"ThinkR-open/prompt\" )\n```\n\n## Initial ideas\n\nin a way that can be configured. Things we might want to display: \n\n- current time\n- memory used `pryr::mem_used`\n- current working directory, maybe slightly differently when it's not the directory of the current rstudio project\n- are we developping a package ? Do we need to rebuild it ? \n- are we sync with github\n- R version\n- ...\n- (please add your own with PR)\n\n\n## License\n\nMIT + file LICENSE © \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThinkR-open%2Fprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThinkR-open%2Fprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThinkR-open%2Fprompt/lists"}