HBGDki / ghap

Tools for working on ghap
Other
3 stars 3 forks source link

set_git_base_path strips backslash from input path string #1

Closed yonicd closed 7 years ago

yonicd commented 7 years ago

i tried setting up the base path and got this output.

> getwd()
[1] "H:/GHAP/QuantSci"
set_git_base_path(file.path(getwd(),"git"))
> ghap::get_git_base_path()
[1] "H:GHAPQuantScigit"
yonicd commented 7 years ago

not sure why that happened, now it seems to work ok

yonicd commented 7 years ago

something is still not right:

> readLines("~/.Renviron")
[1] "GHAP_GIT_BASE_PATH=H:\\GHAP\\QuantSci\\git "
> getOption('GHAP_GIT_BASE_PATH')
[1] "H:GHAPQuantScigit"
> get_git_base_path()
[1] "H:GHAPQuantScigit"

> getwd()
[1] "H:/GitHub/ghap"
> setwd(get_git_base_path())
> getwd()
[1] "H:/GitHub/ghap/GHAPQuantScigit"
> 
yonicd commented 7 years ago

solved https://github.com/HBGDki/ghap/commit/4ccc7ef6783984d50396416b66b03a4f4481caea