Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
b7513245
Unverified
Commit
b7513245
authored
Jul 28, 2022
by
James Lamb
Committed by
GitHub
Jul 28, 2022
Browse files
[docs] [R-package] document how to regenerate roxygen docs (#5382)
parent
bb5d5711
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
R-package/README.md
R-package/README.md
+24
-0
No files found.
R-package/README.md
View file @
b7513245
...
...
@@ -18,6 +18,7 @@
*
[
Testing
](
#testing
)
-
[
Running the Tests
](
#running-the-tests
)
-
[
Code Coverage
](
#code-coverage
)
*
[
Updating Documentation
](
#updating-documentation
)
*
[
Preparing a CRAN Package
](
#preparing-a-cran-package
)
*
[
External Repositories
](
#external-unofficial-repositories
)
*
[
Known Issues
](
#known-issues
)
...
...
@@ -277,6 +278,29 @@ Rscript -e " \
"
```
Updating Documentation
----------------------
The R package uses
[
`{roxygen2}`
](
https://cran.r-project.org/web/packages/roxygen2/index.html
)
to generate its documentation.
The generated
`DESCRIPTION`
,
`NAMESPACE`
, and
`man/`
files are checked into source control.
To regenerate those files, run the following.
```
shell
Rscript
\
--vanilla
\
-e
"install.packages('roxygen2', repos = 'https://cran.rstudio.com')"
sh build-cran-package.sh
--no-build-vignettes
R CMD INSTALL
\
--with-keep
.source
\
./lightgbm_
*
.tar.gz
cd
R-package
Rscript
\
--vanilla
\
-e
"roxygen2::roxygenize(load = 'installed')"
```
Preparing a CRAN Package
------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment