{
  "_id": "6ad5c8414a34890ab4938a5e",
  "Package": "llmflow",
  "Type": "Package",
  "Title": "Reasoning and Acting Workflow for Automated Data Analysis",
  "Version": "3.0.2",
  "Authors@R": "person(\"Zaoqu\", \"Liu\", \nemail = \"liuzaoqu@163.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-0452-742X\"))",
  "Description": "Provides a framework for integrating Large Language Models\n('LLMs') with R programming through workflow automation. Built\non the 'ReAct' (Reasoning and Acting) architecture, enables\nbi-directional communication between 'LLMs' and R environments.\nFeatures include automated code generation and execution,\nintelligent error handling with retry mechanisms, persistent\nsession management, structured JSON output validation, and\ncontext-aware conversation management.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "URL": "https://github.com/Zaoqu-Liu/llmflow",
  "BugReports": "https://github.com/Zaoqu-Liu/llmflow/issues",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libssl-dev libnode-dev",
  "Repository": "https://zaoqu-liu.r-universe.dev",
  "Date/Publication": "2026-01-22 19:11:23 UTC",
  "RemoteUrl": "https://github.com/Zaoqu-Liu/llmflow",
  "RemoteRef": "HEAD",
  "RemoteSha": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-19 07:16:54 UTC",
    "User": "root"
  },
  "Author": "Zaoqu Liu [aut, cre] (ORCID: <https://orcid.org/0000-0002-0452-742X>)",
  "Maintainer": "Zaoqu Liu <liuzaoqu@163.com>",
  "_user": "zaoqu-liu",
  "_type": "src",
  "_file": "llmflow_3.0.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/5cd6a029859ce7aa55c7d3c929dd50d4879d9d8671fbea2544370e353184f645",
  "_filesize": 183975,
  "_sha256": "5cd6a029859ce7aa55c7d3c929dd50d4879d9d8671fbea2544370e353184f645",
  "_expires": "2027-01-27T07:35:27.000Z",
  "_created": "2026-10-19T07:16:54.000Z",
  "_published": "2026-10-19T07:35:28.949Z",
  "_buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117936712030,
      "time": 106,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12169136753"
    },
    {
      "job": 117936712229,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169092868"
    },
    {
      "job": 117936711981,
      "time": 92,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12169313238"
    },
    {
      "job": 117936712073,
      "time": 87,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12170041244"
    },
    {
      "job": 117935279281,
      "time": 251,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168973163"
    },
    {
      "job": 117936712107,
      "time": 96,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12169003200"
    },
    {
      "job": 117936712087,
      "time": 60,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12169415980"
    },
    {
      "job": 117936712148,
      "time": 61,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12169182666"
    },
    {
      "job": 117936712141,
      "time": 78,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169196594"
    }
  ],
  "_upstream": "https://github.com/Zaoqu-Liu/llmflow",
  "_commit": {
    "id": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
    "author": "Zaoqu-Liu <liuzaoqu@163.com>",
    "committer": "Zaoqu-Liu <liuzaoqu@163.com>",
    "message": "Fix CRAN NOTE: replace .GlobalEnv with globalenv()\n",
    "time": 1769109083
  },
  "_maintainer": {
    "name": "Zaoqu Liu",
    "email": "liuzaoqu@163.com",
    "login": "zaoqu-liu",
    "orcid": "0000-0002-0452-742X",
    "description": "PI & Founder of πAI Lab | AI for Science | AI virtual cells & fibroblast biology",
    "uuid": 68080738
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "callr",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "jsonvalidate",
      "role": "Imports"
    },
    {
      "package": "ellmer",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "zaoqu-liu",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-04",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "zaoqu-liu",
      "count": 7,
      "uuid": 68080738
    }
  ],
  "_userbio": {
    "uuid": 68080738,
    "type": "user",
    "name": "Zaoqu Liu",
    "followers": 205,
    "description": "PI & Founder of πAI Lab | AI for Science | AI virtual cells & fibroblast biology"
  },
  "_downloads": {
    "count": 234,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/llmflow"
  },
  "_devurl": "https://github.com/zaoqu-liu/llmflow",
  "_searchresults": 1,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/llmflow.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/zaoqu-liu/llmflow",
  "_realowner": "zaoqu-liu",
  "_cranurl": true,
  "_releases": [
    {
      "version": "3.0.2",
      "date": "2026-01-31"
    }
  ],
  "_exports": [
    "AutoFlow",
    "extract_bash_code",
    "extract_chat_history",
    "extract_code",
    "extract_function_examples",
    "extract_javascript_code",
    "extract_json",
    "extract_python_code",
    "extract_r_code",
    "extract_sql_code",
    "package_extraction_prompt",
    "package_function_schema",
    "prompt_from_history",
    "react_r",
    "react_using_r",
    "response_as_json",
    "response_to_r",
    "retrieve_docs",
    "save_code_to_file"
  ],
  "_help": [
    {
      "page": "AutoFlow",
      "title": "AutoFlow - Automated R Analysis Workflow with LLM",
      "topics": [
        "AutoFlow"
      ]
    },
    {
      "page": "extract_bash_code",
      "title": "Extract Bash/Shell code from a string",
      "topics": [
        "extract_bash_code"
      ]
    },
    {
      "page": "extract_chat_history",
      "title": "Extract chat history from ellmer chat object",
      "topics": [
        "extract_chat_history"
      ]
    },
    {
      "page": "extract_code",
      "title": "Generic function to extract code of any specified language",
      "topics": [
        "extract_code"
      ]
    },
    {
      "page": "extract_function_examples",
      "title": "Extract Examples from a Package Function",
      "topics": [
        "extract_function_examples"
      ]
    },
    {
      "page": "extract_javascript_code",
      "title": "Extract JavaScript code from a string",
      "topics": [
        "extract_javascript_code"
      ]
    },
    {
      "page": "extract_json",
      "title": "Extract and parse JSONs from a string (LLM response)",
      "topics": [
        "extract_json"
      ]
    },
    {
      "page": "extract_python_code",
      "title": "Extract Python code from a string",
      "topics": [
        "extract_python_code"
      ]
    },
    {
      "page": "extract_r_code",
      "title": "Extract R code from a string",
      "topics": [
        "extract_r_code"
      ]
    },
    {
      "page": "extract_sql_code",
      "title": "Extract SQL code from a string",
      "topics": [
        "extract_sql_code"
      ]
    },
    {
      "page": "package_extraction_prompt",
      "title": "Generate Function Extraction Prompt for LLM Analysis",
      "topics": [
        "package_extraction_prompt"
      ]
    },
    {
      "page": "package_function_schema",
      "title": "Create JSON Schema for Package Function Validation",
      "topics": [
        "package_function_schema"
      ]
    },
    {
      "page": "prompt_from_history",
      "title": "Build prompt from chat history",
      "topics": [
        "prompt_from_history"
      ]
    },
    {
      "page": "react_r",
      "title": "Simplified interface - Enhanced react_r",
      "topics": [
        "react_r"
      ]
    },
    {
      "page": "react_using_r",
      "title": "ReAct (Reasoning and Acting) using R code execution - Optimized Version",
      "topics": [
        "react_using_r"
      ]
    },
    {
      "page": "response_as_json",
      "title": "Get JSON response from LLM with validation and retry",
      "topics": [
        "response_as_json"
      ]
    },
    {
      "page": "response_to_r",
      "title": "Response to R code generation and execution with session continuity",
      "topics": [
        "response_to_r"
      ]
    },
    {
      "page": "retrieve_docs",
      "title": "Retrieve and Format R Function Documentation for LLM Consumption",
      "topics": [
        "retrieve_docs"
      ]
    },
    {
      "page": "save_code_to_file",
      "title": "Save extracted code to file",
      "topics": [
        "save_code_to_file"
      ]
    }
  ],
  "_readme": "https://github.com/Zaoqu-Liu/llmflow/raw/HEAD/README.md",
  "_rundeps": [
    "callr",
    "cli",
    "curl",
    "glue",
    "jsonlite",
    "jsonvalidate",
    "otel",
    "processx",
    "ps",
    "R6",
    "Rcpp",
    "V8"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "llmflow",
  "_universes": [
    "zaoqu-liu"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.0.2",
      "date": "2026-10-19T07:18:47.000Z",
      "distro": "resolute",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/5888596dcb2646aa223fcdaa18708ffc6d8b889bc04a614f8124f6f3ebef46a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "3.0.2",
      "date": "2026-10-19T07:18:50.000Z",
      "distro": "resolute",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/7c3b8f1192bba2cf1d9ef855b8b815321795267859d79659175c2b5b99e7178a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.2",
      "date": "2026-10-19T07:31:38.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/59757ec67be699ba779883dfbec0e9fd5d7336efbd13b416db8256b86334a960",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "3.0.2",
      "date": "2026-10-19T07:35:01.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/305ed9b67456413c910f76ed3ca0eb9a8fbd80d098802cd8008459cdb23f4950",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.2",
      "date": "2026-10-19T07:18:47.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/7ec65b1dd56bc5b7f987be24f323a20af9a494c353ea7fa0113f0c099000e58f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.2",
      "date": "2026-10-19T07:17:57.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/c37e0644031c67c617375666ffc22339edb372726753e1158198ad849bbc5279",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.2",
      "date": "2026-10-19T07:17:58.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/5a58b8aa02c27d170802f2b36a71c2c11a80b12baf221a32c910c19cb424b8ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "3.0.2",
      "date": "2026-10-19T07:18:14.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "https://r2.ropensci.org/0361005916ddc652430a197be88c0b5d21e8f60aeb4964a7a1e1176f84bf7a88",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/39214521144"
    }
  ]
}