Commit bbd0b39a authored by Dorchies David's avatar Dorchies David
Browse files

feat: detection of time differences in a month and automatic edition of lacking time

- forgot to add fdt_add_events in exported functions and documentation

Refs #2
parent 13aefa2a
# Generated by roxygen2: do not edit by hand
export(fdt_add_event)
export(fdt_add_events)
export(fdt_get_differentiel)
export(fdt_get_lack_days)
export(fdt_isValidable)
......
#' Add one or more day times in "Feuille de pointage"
#'
#' @param session a [rvest::session] provided by [login] function
#' @param durees [character] [vector] Duration of the working day in format "+00h00"
#' @param dates [character] [vector] Dates for argument `durees`
#' @param type_regulation Regularisation type (default 22 for "Heures normales")
#' @param commentaire [character] Comment for the regularisation
#' @param cfg network configuration using config package facilities (package configuration by default)
#'
#' @return [list] of the return of the [fdt_add_event] function
#' @export
#'
#' @examples
#' \dontrun{
#' library(hatata)
#' session <- login("pnom", "my_password")
#' fdt_add_events(session, c("15/04/2021" = "+07h44", "16/04/2021" = "+07h44"))
#' }
fdt_add_events <- function(session,
durees,
dates = names(durees),
......
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fdt_add_events.R
\name{fdt_add_events}
\alias{fdt_add_events}
\title{Title}
\usage{
fdt_add_events(
session,
durees,
dates = names(durees),
type_regulation = "22",
commentaire = "",
cfg = config::get(file = system.file("config.yml", package = "hatata"))
)
}
\arguments{
\item{session}{a \link[rvest:session]{rvest::session} provided by \link{login} function}
\item{durees}{\link{character} \link{vector} Duration of the working day in format "+00h00"}
\item{dates}{\link{character} \link{vector} Dates for argument \code{durees}}
\item{type_regulation}{Regularisation type (default 22 for "Heures normales")}
\item{commentaire}{\link{character} Comment for the regularisation}
\item{cfg}{network configuration using config package facilities (package configuration by default)}
}
\value{
\link{list} of the return of the \link{fdt_add_event} function
}
\description{
Title
}
\examples{
\dontrun{
library(hatata)
session <- login("pnom", "my_password")
fdt_add_events(session, c("15/04/2021" = "+07h44", "16/04/2021" = "+07h44"))
}
}
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