25 make documentation
This pull request updates the `gemini.R` package to version 0.17.1, introducing deprecations, documentation improvements, and housekeeping changes. The most significant updates are the deprecation of the `gen_image` and `gemini_searchR` functions (with guidance on replacements), the addition of new documentation, and improvements to the package build and vignette system.
**Deprecations and Function Changes:**
- Deprecated the `gen_image` function in favor of the new `nano_banana` function for image generation. The implementation and documentation for `nano_banana` have been moved to a dedicated file (`R/nano_banana.R`). (`R/gen_image.R`, `R/nano_banana.R`, `NEWS.md`, `NAMESPACE`) [[1]](diffhunk://#diff-dccd157b5230eae444db4adbed53030370df313d961644a53870e50bdf90197fL1-L210) [[2]](diffhunk://#diff-1e0a2ec2f2d54c69f6b5267e6cff8b13cb793bc1e771af5b2a270f92eced2edeR1-R97) [[3]](diffhunk://#diff-51920e95310ebfbc1ae31709f3b95f89afffbf4f1a6e38e8b2b406e2fb6197eaL1-R35) [[4]](diffhunk://#diff-b6b6854a02ae177f8860f49654ff250c1554d021ae434b6efdbe99d00bdc6055L16-L26)
- Deprecated the `gemini_searchR` function, with a reference to updated Google Gemini API documentation for search retrieval. (`R/gemini_searchR.R`, `NEWS.md`, `NAMESPACE`) [[1]](diffhunk://#diff-05fbd68528d4c1bbded67a26ee0d80cc27b29672c0a4fd787c2c3e3b17b572feL1-L117) [[2]](diffhunk://#diff-51920e95310ebfbc1ae31709f3b95f89afffbf4f1a6e38e8b2b406e2fb6197eaL1-R35) [[3]](diffhunk://#diff-b6b6854a02ae177f8860f49654ff250c1554d021ae434b6efdbe99d00bdc6055L16-L26)
**Documentation and Metadata:**
- Added and updated package documentation, including release notes in `NEWS.md` and improved references in function documentation. (`NEWS.md`, `R/gemini_search.R`, `DESCRIPTION`) [[1]](diffhunk://#diff-51920e95310ebfbc1ae31709f3b95f89afffbf4f1a6e38e8b2b406e2fb6197eaL1-R35) [[2]](diffhunk://#diff-e7601adcd3a7d9f4212974ab6ee581147e74263913b87e28e5c84a871aa106cdL29-R29) [[3]](diffhunk://#diff-9cc358405149db607ff830a16f0b4b21f7366e3c99ec00d52800acebe21b231cL3-R3)
- Updated the package version to 0.17.1 and added `quarto` and `rmarkdown` as suggested packages for vignette building. (`DESCRIPTION`) [[1]](diffhunk://#diff-9cc358405149db607ff830a16f0b4b21f7366e3c99ec00d52800acebe21b231cL3-R3) [[2]](diffhunk://#diff-9cc358405149db607ff830a16f0b4b21f7366e3c99ec00d52800acebe21b231cR29-R34)
**Build and Housekeeping:**
- Expanded `.Rbuildignore` to exclude additional files and directories related to documentation, vignettes, and assets, improving package cleanliness. (`.Rbuildignore`)
- Updated example model IDs in the `token.vertex` documentation to use the latest model. (`R/vertex.R`)
- Minor update to the README formatting. (`README.md`)
**Other Notable Changes:**
- Cleaned up the `NAMESPACE` by removing exports and imports for deprecated functions. (`NAMESPACE`)
- Simplified the `gemini` function by removing unnecessary conditional logic for image generation. (`R/gemini.R`)
合并状态:已合并 合并于 2025-09-01 关闭于 2025-09-01 0 条评论