Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Drop support for text inputs. #11026

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

trivialfis
Copy link
Member

Related: #9472

  • Drop support for test inputs.
  • Some minor fixes for document rendering.

Most changes are related to the document since we still need the URI API for binary input.

#' @param data Data from which to create a DMatrix, which can then be used for fitting models or
#' for getting predictions out of a fitted model.
#'
#' Supported input types are as follows:\itemize{
#' \item `matrix` objects, with types `numeric`, `integer`, or `logical`.
#' \item `data.frame` objects, with columns of types `numeric`, `integer`, `logical`, or `factor`.
#' \item `data.frame` objects, with columns of types `numeric`, `integer`, `logical`, or `factor`}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we have a mixture of markdown ("-" for bullet points) and roxygen ("\itemize" for list and "\item" for each point).

Should ideally use only one format for a given function doc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will convert them

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

#' Instead, the format must be specified following the URI format, so the input to `data` should be passed
#' like this: `"file.csv?format=csv"` (or `"file.csv?format=csv&label_column=0"` if the first column
#' corresponds to the labels).
#' These are **not** supported by the `xgb.QuantileDMatrix`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#' These are **not** supported by the `xgb.QuantileDMatrix`.
#' These are **not** supported by `xgb.QuantileDMatrix`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants