From 38c2397889a08486119fe1d53f8f7d7646dfc0c3 Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 29 Jul 2024 17:49:12 +0200 Subject: [PATCH] fix: full path for files in desc --- R/desc.R | 5 ++++- R/golem-yaml-set.R | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/R/desc.R b/R/desc.R index 8b125b35..f58ba58d 100644 --- a/R/desc.R +++ b/R/desc.R @@ -115,7 +115,10 @@ fill_desc <- function( name = pkg_name, path = pkg ) - set_golem_name(pkg_name) + set_golem_name( + pkg_name, + pkg = path + ) desc$set( Title = pkg_title diff --git a/R/golem-yaml-set.R b/R/golem-yaml-set.R index b84fb461..1ce07d9d 100644 --- a/R/golem-yaml-set.R +++ b/R/golem-yaml-set.R @@ -45,7 +45,7 @@ set_golem_name <- function( talkative = talkative ) - # Changing in app-config.R + # Changing in app_config.R change_app_config_name( name = name, path = path @@ -62,7 +62,10 @@ set_golem_name <- function( Package = name ) desc$write( - file = "DESCRIPTION" + file = fs_path( + path, + "DESCRIPTION" + ) ) # Changing in ./tests/ if dir present