Open stephlocke opened 4 years ago
You mean when running hubspot_token_create()?
Yep
Did you run it with a token path argument or is this the default?
And if it was not the default how does the file path the default would return look like for you?
That was with the default - the string above was the output generated by uq_filename()
And does the string look weird in .Renviron already? Or only when retrieving it via Sys.getenv?
@stephlocke a few questions
does the string look weird in .Renviron already? Or only when retrieving it via Sys.getenv?
What is Sys.getenv("HOME")
on your system? And file.path(Sys.getenv("HOME"))
?
And normalizePath("~"))? file.path(normalizePath("~"))
?
Thanks!
Besides, did you use rtweet stuff on your machine?
The hubspot looks like HUBSPOT_PAT=C:\Users\steph\OneDrive\Documents/.hubspot_token1.rds
whereas rtweet lookes like TWITTER_PAT=C:/Users/steph/OneDrive/Documents/.rtweet_token2.rds
Removing the HUBSPOT_PAT and reauthing with set_renv results in the same backslashes
> Sys.getenv("HOME")
[1] "C:\\Users\\steph\\OneDrive\\Documents"
> file.path(Sys.getenv("HOME"))
[1] "C:\\Users\\steph\\OneDrive\\Documents"
> file.path(normalizePath("~"))
[1] "C:\\Users\\steph\\OneDrive\\Documents"
The
set_renv()
function is returning weirdly for me. The below file path is the one generated in the token create function.