# R package creating: function does not show up listed in the package table of content

#### gianmarco

##### TS Contributor
I am creating an R package in R studio using 'devtools' and 'roxygen2' as I happened to do in the past. It features 13 functions and 4 datasets.
I have a problem with the documentation for one of the functions. If I type ?modelvalid, I get the help document in the RStudio help panel; all seems normal when I run the function itself, i.e. it works. The only problem is that the function does not show up among the package's functions listed in the table of contents (see attached screenshot). I am wondering what is actually causing this problem. Do you have any idea?
If it may help, I am pasting below the code for the documentation itself (i.e., the code that I put immediately before the function's code).

Code:
#' R function for binary Logistic Regression internal validation
#'
#' The function allows to perform internal validation of a binary Logistic Regression model, implementing part of the procedure described in
#' Arboretti Giancristofaro R, Salmaso L. "Model performance analysis and model validation in logistic regression". Statistica 2003(63): 375–396.\cr
#' The procedure consists of the following steps:\cr
#' (1) the whole dataset is split into two random parts, a fitting (75 percent) and a validation (25 percent) portion;\cr
#' (2) the model is fitted on the fitting portion (i.e., its coefficients are computed considering only the observations in that portion) and its performance is evaluated on both the fitting and the validation portion, using AUC as performance measure;\cr
#' (3) steps 1-2 are repeated B times, eventually getting a fitting and validation distribution of the AUC values. The former provides an estimate of the performance of the model in the population of all the theoretical training samples; the latter represents an estimate of the model’s performance on new and independent data.\cr
#' The function returns two boxplots that represent the training and the testing (i.e., validation) distribution of the AUC value across the 1000 iterations. For an example of the interpretation of the chart, see the aforementioned article, especially page 390-91.
#' @param data: dataframe containing the dataset (Dependent Variable must be stored in the first column to the left).
#' @param fit: object returned from glm() function.
#' @param B: desired number of iterations (see description of the procedure above).
#' @keywords logistic regression internal validation bootstrap
#' @export
#' @examples
#' data(log_regr_data) # load the sample dataset
#' model <- glm(admit ~ gre + gpa + rank, data = log_regr_data, family = "binomial") # fit a logistic regression model, storing the results into an object called 'model'
#' modelvalid(data=log_regr_data, fit=model, B=1000) # run the function, using 1000 iterations
#'

#### Dason

Best of luck until then. But having the actual codebase would make helping a lot easier.

#### gianmarco

##### TS Contributor
Yes, I see. I think I will put it on GiHub in few days. Thanks

#### Dason

Sent a pull request to you on github. The 'internal' keyword is what was causing the problem.

#### Dason

file.path(R.home("doc"), "KEYWORDS")