-
Notifications
You must be signed in to change notification settings - Fork 24
Call to confl_create_post_from_Rmd (not interactive) returns browser error #104
Comments
Hmm, curious. Are you sure you can use bare |
@yutannihilation , no I am not sure. I don't have prior experience authoring in rmarkdown. |
@yutannihilation , yes it can. I just called render from console to create an html document of the test.Rmd file I had posted successfully to Confluence. |
Thanks for confirming, then something seems wrong in our custom format... https://github.com/line/conflr/blob/master/R/document.R Does it succeed to call |
Yes, I can call confl_get_current_user() on terminal. It returns a list of ~ 15 elements, including an acct id and my email. |
@yutannihilation , I just determined that despite returning the browserURL error, the confl_create_post_from_Rmd() call from R console session did successfully create its test confluence page. I had not refreshed my confluence browser enough to notice. I was in the mindset that if the function returned an error, it automatically failed. |
I still have no idea what happens on your terminal, but the information is really helpful. Thanks!
Then, it seems there's no problem about the authentication. Hmm...
Do you mean that the page is published successfully and what fails is just launching the web browser? Or, do you see a blank page? |
When I call confl_create_post_from_Rmd(interactive=F) from a terminal R session, I receive the following error.
The function works when I call it from the command line in R studio, opening a browser with the created page. But this is a behavior I do not need or want in "Batch Use". I want to create large numbers of pages without R attempting to open a browser to them.
I troubleshooted in two ways.
First, I tried setting the environmental variable R_BROWSER=FALSE in my .Rprofile (to suppress showing URLs altogether).
Second, I commented out
#readLines(paste0(output_file, "_result_url"), warn = FALSE)
in the function and had it return a number. This produced another error message.I think the issue is the render function in rmarkdown.
Can I use this function or your package to create / publish pages without R trying to open the page in a browser?
The text was updated successfully, but these errors were encountered: