Skip to content

Commit c6a7c42

Browse files
fix of write links fn
1 parent 6f9c94d commit c6a7c42

11 files changed

Lines changed: 13 additions & 13 deletions

R/fn_write.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,12 @@ write_links_for_website <- function (path_to_pkg_rt_1L_chr = getwd(), user_manua
477477
dest_path_1L_chr = paste0(path_to_pkg_rt_1L_chr, "/_pkgdown.yml"),
478478
edit_fn = function(txt_chr, user_manual_url_1L_chr, developer_manual_url_1L_chr,
479479
project_website_url_1L_chr) {
480-
idx_1L_int <- which(text_chr == "home:")
480+
idx_1L_int <- which(txt_chr == "home:")
481481
if (!identical(idx_1L_int, integer(0))) {
482-
changes_chr <- c(any(text_chr == " - text: User manual (PDF)"),
483-
any(text_chr == " - text: Developer version of usual manual (PDF)"),
484-
any(text_chr == " - text: Project website"))
485-
txt_chr <- text_chr[-(1:(length(changes_chr[changes_chr ==
482+
changes_chr <- c(any(txt_chr == " - text: User manual (PDF)"),
483+
any(txt_chr == " - text: Developer version of usual manual (PDF)"),
484+
any(txt_chr == " - text: Project website"))
485+
txt_chr <- txt_chr[-(1:(length(changes_chr[changes_chr ==
486486
T]) + 2))]
487487
}
488488
c("home:", " links:", ifelse(!is.na(user_manual_url_1L_chr),

data-raw/DATASET.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ write_and_doc_fn_fls(fns_dmt_tb,
206206
update_pkgdown_1L_lgl = T)
207207
#
208208

209-
# write_links_for_website(user_manual_url_1L_chr = "https://github.com/ready4-dev/ready4fun/releases/download/v0.0.0.9270/ready4fun_0.0.0.9270.pdf",
210-
# #developer_manual_url_1L_chr = "https://ready4-dev.github.io/ready4/pdfs/ready4fun_0.0.0.9216_dev.pdf",
211-
# project_website_url_1L_chr = "https://www.ready4-dev.com/")
209+
write_links_for_website(user_manual_url_1L_chr = "https://github.com/ready4-dev/ready4fun/releases/download/v0.0.0.9276/ready4fun_user_0.0.0.9276.pdf",
210+
developer_manual_url_1L_chr = "https://github.com/ready4-dev/ready4fun/releases/download/v0.0.0.9276/ready4fun_developer_0.0.0.9276.pdf",
211+
project_website_url_1L_chr = "https://www.ready4-dev.com/")
212212

213213
# 11. Create vignettes
214214
# NOTE TO SELF: Currently Vignettes are overwritten by this last step. Need to implement more sophisticated workflow.

data-raw/fns/write.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,12 @@ write_links_for_website <- function(path_to_pkg_rt_1L_chr = getwd(), # Needs dup
402402
developer_manual_url_1L_chr,
403403
project_website_url_1L_chr){
404404

405-
idx_1L_int <- which(text_chr=="home:")
405+
idx_1L_int <- which(txt_chr=="home:")
406406
if(!identical(idx_1L_int,integer(0))){
407-
changes_chr <- c(any(text_chr == " - text: User manual (PDF)"),
408-
any(text_chr == " - text: Developer version of usual manual (PDF)"),
409-
any(text_chr == " - text: Project website"))
410-
txt_chr <- text_chr[-(1:(length(changes_chr[changes_chr==T])+2))]
407+
changes_chr <- c(any(txt_chr == " - text: User manual (PDF)"),
408+
any(txt_chr == " - text: Developer version of usual manual (PDF)"),
409+
any(txt_chr == " - text: Project website"))
410+
txt_chr <- txt_chr[-(1:(length(changes_chr[changes_chr==T])+2))]
411411
}
412412
c("home:",
413413
" links:",
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading

pkgdown/favicon/favicon-16x16.png

0 Bytes
Loading

0 commit comments

Comments
 (0)