We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 877ac93 commit 92f5174Copy full SHA for 92f5174
.lintr
@@ -0,0 +1,5 @@
1
+linters: with_defaults(
2
+ cyclocomp_linter = NULL,
3
+ object_length_linter = NULL,
4
+ object_name_linter = NULL,
5
+ object_usage_linter = NULL)
R/utils_project.R
@@ -9,8 +9,6 @@ project_set <- function(name) {
9
project_get <- function() {
10
if (file.exists(project_path("_project"))) {
11
readLines(project_path("_project"))
12
- } else {
13
- character(0)
14
}
15
16
@@ -20,10 +18,9 @@ project_list <- function() {
20
18
21
19
project_create <- function(name) {
22
name <- trimws(name)
23
- if (!project_valid(name)) {
24
- return()
+ if (project_valid(name)) {
+ dir_create(project_path(name))
25
26
- dir_create(project_path(name))
27
28
29
project_valid <- function(name) {
0 commit comments