Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorchies David
HaTaTA
Commits
f675149a
Commit
f675149a
authored
May 12, 2021
by
Dorchies David
Browse files
doc: update add_temps
parent
7d60f6d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
man/add_temps.Rd
View file @
f675149a
...
...
@@ -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")
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment