Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cute_little_R_functions
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gael MILLOT
cute_little_R_functions
Commits
b53c9307
Commit
b53c9307
authored
1 year ago
by
hwang
Browse files
Options
Downloads
Patches
Plain Diff
complete the addition of packages before functions
parent
4cc9e95e
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gg_empty.R
+5
-5
5 additions, 5 deletions
gg_empty.R
with
5 additions
and
5 deletions
gg_empty.R
+
5
−
5
View file @
b53c9307
...
@@ -87,10 +87,10 @@ gg_empty <- function(
...
@@ -87,10 +87,10 @@ gg_empty <- function(
# end arg with no default values
# end arg with no default values
# argument checking with arg_check()
# argument checking with arg_check()
# argument checking
# argument checking
arg.check
<-
NULL
#
arg
um
.check
<-
NULL
#
text.check
<-
NULL
#
text.check
<-
NULL
#
checked.arg.names
<-
NULL
# for function debbuging: used by r_debugging_tools
checked.arg.names
<-
NULL
# for function debbuging: used by r_debugging_tools
ee
<-
base
::
expression
(
arg.check
<-
base
::
c
(
arg.check
,
tempo
$
problem
)
,
text.check
<-
base
::
c
(
text.check
,
tempo
$
text
)
,
checked.arg.names
<-
base
::
c
(
checked.arg.names
,
tempo
$
object.name
))
ee
<-
base
::
expression
(
arg
um
.check
<-
base
::
c
(
arg
um
.check
,
tempo
$
problem
)
,
text.check
<-
base
::
c
(
text.check
,
tempo
$
text
)
,
checked.arg.names
<-
base
::
c
(
checked.arg.names
,
tempo
$
object.name
))
if
(
!
base
::
is.null
(
text
)){
if
(
!
base
::
is.null
(
text
)){
tempo
<-
saferDev
::
arg_check
(
data
=
text
,
class
=
"vector"
,
mode
=
"character"
,
length
=
1
,
fun.name
=
function.name
)
;
base
::
eval
(
ee
)
tempo
<-
saferDev
::
arg_check
(
data
=
text
,
class
=
"vector"
,
mode
=
"character"
,
length
=
1
,
fun.name
=
function.name
)
;
base
::
eval
(
ee
)
}
}
...
@@ -99,9 +99,9 @@ gg_empty <- function(
...
@@ -99,9 +99,9 @@ gg_empty <- function(
tempo
<-
saferDev
::
arg_check
(
data
=
title
,
class
=
"vector"
,
mode
=
"character"
,
length
=
1
,
fun.name
=
function.name
)
;
base
::
eval
(
ee
)
tempo
<-
saferDev
::
arg_check
(
data
=
title
,
class
=
"vector"
,
mode
=
"character"
,
length
=
1
,
fun.name
=
function.name
)
;
base
::
eval
(
ee
)
}
}
tempo
<-
saferDev
::
arg_check
(
data
=
title.size
,
class
=
"vector"
,
mode
=
"numeric"
,
length
=
1
,
fun.name
=
function.name
)
;
base
::
eval
(
ee
)
tempo
<-
saferDev
::
arg_check
(
data
=
title.size
,
class
=
"vector"
,
mode
=
"numeric"
,
length
=
1
,
fun.name
=
function.name
)
;
base
::
eval
(
ee
)
if
(
!
base
::
is.null
(
arg.check
)){
if
(
!
base
::
is.null
(
arg
um
.check
)){
if
(
base
::
any
(
arg.check
)
==
TRUE
){
if
(
base
::
any
(
arg
um
.check
)
==
TRUE
){
base
::
stop
(
base
::
paste0
(
"\n\n================\n\n"
,
base
::
paste
(
text.check
[
arg.check
],
collapse
=
"\n"
),
"\n\n================\n\n"
),
call.
=
FALSE
)
#
base
::
stop
(
base
::
paste0
(
"\n\n================\n\n"
,
base
::
paste
(
text.check
[
arg
um
.check
],
collapse
=
"\n"
),
"\n\n================\n\n"
),
call.
=
FALSE
)
#
}
}
}
}
# end argument checking with arg_check()
# end argument checking with arg_check()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment