Skip to content

Commit 927e0cd

Browse files
authored
add more logs (#25)
1 parent 6988243 commit 927e0cd

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

R/cmd.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ louper_create_cloupe <- function(
5454
return(err(sprintf("cannot find Louper executable at path: '%s'", executable_path)))
5555
}
5656

57+
cmd_msg <- sprintf('running command: "%s"', paste(c(executable_path, args), collapse=" "))
58+
logMsg(cmd_msg)
59+
5760
status <- system2(command=executable_path, args=args)
5861

5962
if (status == 0) {

R/lib.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ create_loupe <- function(
128128
}
129129

130130
h5path <- sprintf("%s.h5", tempfile())
131+
logMsg("creating temporary hdf5 file:", h5path)
131132
ok <- create_hdf5(
132133
count_mat,
133134
clusters,
@@ -140,6 +141,7 @@ create_loupe <- function(
140141
stop(general_err(ok$msg, "creating the temporary hdf5 file"))
141142
}
142143

144+
logMsg("invoking louper executable")
143145
ok <- louper_create_cloupe(
144146
h5path,
145147
output_dir=output_dir,

0 commit comments

Comments
 (0)