From 3c31be1c1a8108963555ce3c54370abe3cdb549d Mon Sep 17 00:00:00 2001 From: wlandau Date: Tue, 22 Oct 2024 10:42:13 -0400 Subject: [PATCH] path.expand() --- DESCRIPTION | 2 +- NEWS.md | 4 ++-- R/pprof.R | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 9bc0c73..8d14b15 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: proffer Title: Profile R Code and Visualize with 'Pprof' -Version: 0.2.0.9000 +Version: 0.2.0.9001 Encoding: UTF-8 Language: en-US License: MIT + file LICENSE diff --git a/NEWS.md b/NEWS.md index 2612176..2ea029c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,6 @@ -# proffer 0.2.0.9000 (development) - +# proffer 0.2.0.9001 (development) +* Use `path.expand()` on path to profiling samples. # proffer 0.2.0 diff --git a/R/pprof.R b/R/pprof.R index 9c435a3..61f82da 100644 --- a/R/pprof.R +++ b/R/pprof.R @@ -144,7 +144,7 @@ serve_pprof <- function( verbose = TRUE ) { server <- sprintf("%s:%s", host, port) - args <- c("-http", server, "-no_browser", pprof) + args <- c("-http", server, "-no_browser", path.expand(pprof)) process <- serve_pprof_impl(args) if (browse) { browse_port(host, port, process, verbose)