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

doc: update add_temps

parent 7d60f6d0
......@@ -2,7 +2,7 @@
% Please edit documentation in R/add_temps.R
\name{add_temps}
\alias{add_temps}
\title{Title}
\title{Add a day time in "Feuille de pointage"}
\usage{
add_temps(
session,
......@@ -10,7 +10,6 @@ add_temps(
duree = "+07h44",
type_regulation = "22",
commentaire = "",
user_id = get_user_id(session),
cfg = config::get(file = system.file("config.yml", package = "hatata"))
)
}
......@@ -23,18 +22,13 @@ add_temps(
\item{commentaire}{\link{character} Comment for the regularisation}
\item{user_id}{ID of the user}
\item{cfg}{network configuration using config package facilities (package configuration by default)}
\item{cookies}{Connection cookies in string format or key/value vector
(See \link{set_cookie})}
}
\value{
the return of the \link[httr:POST]{httr::POST} function
}
\description{
Title
session a \link[rvest:session]{rvest::session} provided by \link{login} function
}
\details{
If \code{cookies} is provided in a single \link{character} format, \link{set_cookie} is automatically called.
......@@ -42,10 +36,7 @@ If \code{cookies} is provided in a single \link{character} format, \link{set_coo
\examples{
\dontrun{
library(hatata)
login("pnom", "my_password")
add_temps(
user_id = "4242",
date = "15/04/2021"
)
session <- login("pnom", "my_password")
add_temps(session, "15/04/2021")
}
}
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