File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Getting the DESCRIPTION file in a data.frame
2
2
daf_desc <- function (
3
- path = get_golem_wd(),
3
+ pkg = get_golem_wd(),
4
4
entry ) {
5
5
as.character(
6
6
unlist(
7
7
unname(
8
8
as.data.frame(
9
9
read.dcf(
10
10
normalizePath(
11
- fs_path(path , " DESCRIPTION" )
11
+ fs_path(pkg , " DESCRIPTION" )
12
12
)
13
13
)
14
14
)[entry ]
@@ -22,19 +22,19 @@ daf_desc <- function(
22
22
# ' These are functions to help you navigate
23
23
# ' inside your project while developing
24
24
# '
25
- # ' @param path Path to use to read the DESCRIPTION
25
+ # ' @param pkg Path to use to read the DESCRIPTION
26
26
# '
27
27
# ' @export
28
28
# ' @rdname pkg_tools
29
29
# '
30
30
# ' @return The value of the entry in the DESCRIPTION file
31
- pkg_name <- function (path = get_golem_wd()) {
32
- daf_desc(path , " Package" )
31
+ pkg_name <- function (pkg = get_golem_wd()) {
32
+ daf_desc(pkg , " Package" )
33
33
}
34
34
# ' @export
35
35
# ' @rdname pkg_tools
36
- pkg_version <- function (path = get_golem_wd()) {
37
- daf_desc(path , " Version" )
36
+ pkg_version <- function (pkg = get_golem_wd()) {
37
+ daf_desc(pkg , " Version" )
38
38
}
39
39
# ' @export
40
40
# ' @rdname pkg_tools
You can’t perform that action at this time.
0 commit comments