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

doc: update add_temps

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