You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running R/RStudio on a Windows 11 machine and received the following error:
> quartopost::quartopost()
Error in if (stringr::str_detect(f_list[[i]], "categories:")) { :
missing value where TRUE/FALSE needed
I was able to trace the error back to the get_cat function in R\utils.R. Specifically, Line #139.
On Windows, when I hit [ENTER] to create a new line, it uses \r\n to create a new line, instead of \n. Googling around indicates this is common for windows machines.
The regex in Line #139 is looking for the YAML section to end with ---\n, but in my case the YAML ended with ---\r\n.
I downloaded your source repository, made the addition to the regex to include ---\\r\\n, installed the updated source package, and was able to successfully use your package.
Since I have this work-around, I don't need this issue resolved, but I thought open this issue for others and so you can consider a regex expression that is more flexible.
Thank you for bringing this issue to my attention. I am working on macOS, so I couldn't test it on a window machine. I will resolve the issue with the next release of quartopost. But this could take a while as I am currently busy on other projects.
Afterthought: I have the impression that the Quarto developers are planning to add your desired functionality into future releases. It seems to me generally that a function for new blog entries would be a very useful feature for many Quarto blog users.
I am running R/RStudio on a Windows 11 machine and received the following error:
I was able to trace the error back to the
get_cat
function inR\utils.R
. Specifically, Line #139.On Windows, when I hit
[ENTER]
to create a new line, it uses\r\n
to create a new line, instead of\n
. Googling around indicates this is common for windows machines.The regex in Line #139 is looking for the YAML section to end with
---\n
, but in my case the YAML ended with---\r\n
.I downloaded your source repository, made the addition to the regex to include
---\\r\\n
, installed the updated source package, and was able to successfully use your package.Since I have this work-around, I don't need this issue resolved, but I thought open this issue for others and so you can consider a regex expression that is more flexible.
Excellent package as I wait for this quarto-r enhancement to be added :) Thank you!
The text was updated successfully, but these errors were encountered: