Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Error in word_document when called by roundtrip_active_file #57

Open
ghost opened this issue Oct 4, 2019 · 4 comments · May be fixed by #65
Open

Error in word_document when called by roundtrip_active_file #57

ghost opened this issue Oct 4, 2019 · 4 comments · May be fixed by #65

Comments

@ghost
Copy link

ghost commented Oct 4, 2019

This is my first time trying to use the package, I just installed it from GitHub today.

I'm calling it with the RStudio Addin "Render and Update" and I get the following error:

redoc:::roundtrip_active_file()
# Error in word_document(...) : unused argument (roundtrip = TRUE)

I updated from rmarkdown 1.16 to the latest sources on GitHub and still get the error.

I'm not sure if this is the right way to first render a document. If not, I'd be grateful for instructions!


Session Info
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.2       rstudioapi_0.10  knitr_1.25       xml2_1.2.2       magrittr_1.5     uuid_0.1-2      
 [7] R6_2.4.0         rlang_0.4.0      httr_1.4.1       tools_3.6.1      packrat_0.4.8-1  xfun_0.10       
[13] htmltools_0.3.6  yaml_2.2.0       digest_0.6.21    crayon_1.3.4     zip_2.0.4        whoami_1.3.0    
[19] officer_0.3.5    base64enc_0.1-3  evaluate_0.14    mime_0.7         rmarkdown_1.16.1 stringi_1.4.3   
[25] compiler_3.6.1   diffobj_0.2.3    redoc_0.1.0.9000 jsonlite_1.6    

Pandoc version (get with rmarkdown::pandoc_version): 2.6

RStudio version (if applicable): 1.2.5001

@DocEd
Copy link

DocEd commented Oct 9, 2019

I'm getting the same error.
Otherwise things are working well. Thanks for developing this package. It could be a game changer for working with my non-R collaborators!

@sammo3182
Copy link

Same error +1. Anyway to avoid this? I tried to call the function directly from the console, the same error message returned.

petrbouchal added a commit to petrbouchal/redoc that referenced this issue Mar 14, 2020
…ixes noamross#57

My understanding is that this is a remnant of a pre-refactor form of dedoc() as dedoc() currently does not use this parameter and handles the roundtrip process internally; I tested it without the parameter and it seems to work but will require review to make sure I didn't miss anything.
@petrbouchal petrbouchal linked a pull request Mar 14, 2020 that will close this issue
@statsccpr
Copy link

First time testing the package and I couldn't get out of the starting gates, this was the problem for me too.

#65 (comment)

@petrbouchal
Copy link

FWIW you can install a version with this issue fixed from the PR #65 ref by runningremotes::install_github("noamross/redoc#65").

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants