Unverified Commit 85b9daa9 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] remove broken default for `file` in readRDS / saveRDS functions (#3664)

* [R-package] remove broken default file in readRDS / saveRDS functions

* empty commit
parent 532fa914
...@@ -404,6 +404,9 @@ python-package/lightgbm/VERSION.txt ...@@ -404,6 +404,9 @@ python-package/lightgbm/VERSION.txt
**/autom4te.cache/ **/autom4te.cache/
conftest* conftest*
R-package/config.status R-package/config.status
!R-package/data/agaricus.test.rda
!R-package/data/agaricus.train.rda
!R-package/data/bank.rda
R-package/docs R-package/docs
R-package/src/CMakeLists.txt R-package/src/CMakeLists.txt
R-package/src/Makevars R-package/src/Makevars
...@@ -422,9 +425,7 @@ miktex*.zip ...@@ -422,9 +425,7 @@ miktex*.zip
# Files created by R examples and tests # Files created by R examples and tests
**/lgb-Dataset.data **/lgb-Dataset.data
**/lgb-model.rds
**/lgb.Dataset.data **/lgb.Dataset.data
**/model.rds
**/model.txt **/model.txt
**/lgb-model.txt **/lgb-model.txt
...@@ -432,6 +433,9 @@ miktex*.zip ...@@ -432,6 +433,9 @@ miktex*.zip
.Rproj.user .Rproj.user
**/.Rapp.history **/.Rapp.history
**/.Rhistory **/.Rhistory
*.rda
*.RData
*.rds
# Files generated by aspell # Files generated by aspell
**/*.bak **/*.bak
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#' new_model <- readRDS.lgb.Booster(model_file) #' new_model <- readRDS.lgb.Booster(model_file)
#' } #' }
#' @export #' @export
readRDS.lgb.Booster <- function(file = "", refhook = NULL) { readRDS.lgb.Booster <- function(file, refhook = NULL) {
object <- readRDS(file = file, refhook = refhook) object <- readRDS(file = file, refhook = refhook)
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#' } #' }
#' @export #' @export
saveRDS.lgb.Booster <- function(object, saveRDS.lgb.Booster <- function(object,
file = "", file,
ascii = FALSE, ascii = FALSE,
version = NULL, version = NULL,
compress = TRUE, compress = TRUE,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
\alias{readRDS.lgb.Booster} \alias{readRDS.lgb.Booster}
\title{readRDS for \code{lgb.Booster} models} \title{readRDS for \code{lgb.Booster} models}
\usage{ \usage{
readRDS.lgb.Booster(file = "", refhook = NULL) readRDS.lgb.Booster(file, refhook = NULL)
} }
\arguments{ \arguments{
\item{file}{a connection or the name of the file where the R object is saved to or read from.} \item{file}{a connection or the name of the file where the R object is saved to or read from.}
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
\usage{ \usage{
saveRDS.lgb.Booster( saveRDS.lgb.Booster(
object, object,
file = "", file,
ascii = FALSE, ascii = FALSE,
version = NULL, version = NULL,
compress = TRUE, compress = TRUE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment