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

cannot successfully load package #44

Open
mvantieghem opened this issue May 27, 2019 · 7 comments
Open

cannot successfully load package #44

mvantieghem opened this issue May 27, 2019 · 7 comments

Comments

@mvantieghem
Copy link

mvantieghem commented May 27, 2019

Hi,
I tried downloading and loading redoc from your github and the library won't load.
Here is the code i entered and output. Do I have to update all of the packages in order for this to work? I'm just hesitant to do so.

> remotes::install_github("noamross/redoc")
Downloading GitHub repo noamross/redoc@master
These packages have more recent versions available.
Which would you like to update?

 1:   assertthat (0.2.0  -> 0.2.1 ) [CRAN]   2:   digest     (0.6.18 -> 0.6.19) [CRAN]
 3:   highr      (0.7    -> 0.8   ) [CRAN]   4:   knitr      (1.22   -> 1.23  ) [CRAN]
 5:   openssl    (1.2.1  -> 1.3   ) [CRAN]   6:   rmarkdown  (1.11   -> 1.13  ) [CRAN]
 7:   sys        (1.6    -> 3.2   ) [CRAN]   8:   tinytex    (0.10   -> 0.13  ) [CRAN]
 9:   xfun       (0.5    -> 0.7   ) [CRAN]  10:   zip        (1.0.0  -> 2.0.2 ) [CRAN]
11:   CRAN packages only                    12:   All                                 
13:   None                                  
Enter one or more numbers separated by spaces, or an empty line to cancel
1: 13
Downloading GitHub repo davidgohel/officer@master
These packages have more recent versions available.
Which would you like to update?

1:   digest (0.6.18 -> 0.6.19) [CRAN]
2:   zip    (1.0.0  -> 2.0.2 ) [CRAN]
3:   CRAN packages only
4:   All
5:   None

Enter one or more numbers separated by spaces, or an empty line to cancel
1: 3
digest (0.6.18 -> 0.6.19) [CRAN]
zip    (1.0.0  -> 2.0.2 ) [CRAN]
Installing 2 packages: digest, zip
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/digest_0.6.19.tgz'
Content type 'application/x-gzip' length 212339 bytes (207 KB)
==================================================
downloaded 207 KB

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/zip_2.0.2.tgz'
Content type 'application/x-gzip' length 195279 bytes (190 KB)
==================================================
downloaded 190 KB


The downloaded binary packages are in
	/var/folders/1s/xccvxp5921b4b92jlx1kp27w0000gn/T//RtmppCCD0x/downloaded_packages
✔  checking for file ‘/private/var/folders/1s/xccvxp5921b4b92jlx1kp27w0000gn/T/RtmppCCD0x/remotes3ff75b73a7b0/davidgohel-officer-c1e1a57/DESCRIPTION’ ...
─  preparing ‘officer’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘officer_0.3.4.tar.gz’
   
* installing *source* package ‘officer’ ...
** libs
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c border.cpp -o border.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c color_spec.cpp -o color_spec.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c ml_data_frame.cpp -o ml_data_frame.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c ppr.cpp -o ppr.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c rpr.cpp -o rpr.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c talk_ppr.cpp -o talk_ppr.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c talk_rpr.cpp -o talk_rpr.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c talk_tcpr.cpp -o talk_tcpr.o
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c tcpr.cpp -o tcpr.o
clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o officer.so RcppExports.o border.o color_spec.o ml_data_frame.o ppr.o rpr.o talk_ppr.o talk_rpr.o talk_tcpr.o tcpr.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.5/Resources/library/officer/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (officer)
Downloading GitHub repo brodieG/diffobj@development
✔  checking for file ‘/private/var/folders/1s/xccvxp5921b4b92jlx1kp27w0000gn/T/RtmppCCD0x/remotes3ff768118ed/brodieG-diffobj-5c9b288/DESCRIPTION’ ...
─  preparing ‘diffobj’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘diffobj_0.2.2.9003.tar.gz’
   
* installing *source* package ‘diffobj’ ...
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c diff.c -o diff.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c diffobj.c -o diffobj.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include   -fPIC  -Wall -g -O2  -c init.c -o init.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o diffobj.so diff.o diffobj.o init.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.5/Resources/library/diffobj/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (diffobj)
✔  checking for file ‘/private/var/folders/1s/xccvxp5921b4b92jlx1kp27w0000gn/T/RtmppCCD0x/remotes3ff73a79863e/noamross-redoc-d6fbcfa/DESCRIPTION’ ...
─  preparing ‘redoc’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘redoc_0.1.0.9000.tar.gz’
   
* installing *source* package ‘redoc’ ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (redoc)
> library(redoc)
@noamross
Copy link
Owner

Based on the example you provided above things did install properly. What happens after you run library(redoc).?

You do need updated versions of officer and diffobj, and most of the associated updates flow from those. I just pushed a change that installs these from CRAN rather than GitHub (because their last version were just pushed to CRAN reccently), which should reduce dependency installs slightly. I haven't tested against older versions of other packages - let me know of bugs and I'll see if I need to define minimum versions for the other ones.

@mvantieghem
Copy link
Author

mvantieghem commented May 29, 2019

Hi, ok you are right, i just needed to start a new R session and library(redoc) worked.
however, just trying to create a test document, and having trouble knitting to redoc.

The contents of my Rmd file:

---
title: "Testing redoc"
author: "Michelle.VanTieghem"
date: "5/29/2019"
output:
  redoc::redoc
---

Testing a redoc document.

what happened when I tried to knit (R markdown output):

processing file: redoctest.preprocessed.Rmd
output file: redoctest.knit.md

pandoc: unrecognized option `--lua-filter'
unrecognized option `--eol=lf'
Try pandoc --help for more information.
Error: pandoc document conversion failed with error 2
Execution halted

@noamross
Copy link
Owner

I suspect you have an old pandoc version. Can you show the output of:

rmarkdown::pandoc_version()
rmarkdown::pandoc_exec()
rstudioapi::versionInfo() # if using RStudio
sessioninfo::session_info()

Note that if you wrap these in triple backticks, like so, it makes the output much easier to read:

    ```
    some_code_or_output
    ```

@mvantieghem
Copy link
Author

rmarkdown::pandoc_version()
[1] ‘1.19.2.1’
rmarkdown::pandoc_exec()
[1] "/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc"
rstudioapi::versionInfo() # if using RStudio
$citation

To cite RStudio in publications use:

RStudio Team (2016). RStudio: Integrated Development for R. RStudio, Inc., Boston, MA URL
http://www.rstudio.com/.

A BibTeX entry for LaTeX users is

@Manual{,
title = {RStudio: Integrated Development Environment for R},
author = {{RStudio Team}},
organization = {RStudio, Inc.},
address = {Boston, MA},
year = {2016},
url = {http://www.rstudio.com/},
}

$mode
[1] "desktop"

$version
[1] ‘1.1.456’

sessioninfo::session_info()
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.5.2 (2018-12-20)
os macOS High Sierra 10.13.6
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz America/New_York
date 2019-05-31

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────
! package * version date lib source
abind 1.4-5 2016-07-21 [1] CRAN (R 3.5.0)
acepack 1.4.1 2016-10-29 [1] CRAN (R 3.5.0)
arm 1.10-1 2018-04-13 [1] CRAN (R 3.5.0)
assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.0)
backports 1.1.4 2019-04-10 [1] CRAN (R 3.5.2)
base64enc 0.1-3 2015-07-28 [1] CRAN (R 3.5.0)
BayesFactor 0.9.12-4.2 2018-05-19 [1] CRAN (R 3.5.0)
bayesplot 1.6.0 2018-08-02 [1] CRAN (R 3.5.0)
BDgraph 2.59 2019-05-06 [1] CRAN (R 3.5.2)
blavaan 0.3-4 2019-01-11 [1] CRAN (R 3.5.2)
boot 1.3-20 2017-08-06 [1] CRAN (R 3.5.0)
bridgesampling 0.6-0 2018-10-21 [1] CRAN (R 3.5.0)
brms * 2.7.0 2018-12-17 [1] CRAN (R 3.5.0)
Brobdingnag 1.2-6 2018-08-13 [1] CRAN (R 3.5.0)
broom * 0.5.2 2019-04-07 [1] CRAN (R 3.5.2)
broom.mixed * 0.2.3 2018-10-21 [1] CRAN (R 3.5.0)
callr 3.1.1 2018-12-21 [1] CRAN (R 3.5.0)
carData * 3.0-2 2018-09-30 [1] CRAN (R 3.5.0)
cellranger 1.1.0 2016-07-27 [1] CRAN (R 3.5.0)
checkmate 1.9.3 2019-05-03 [1] CRAN (R 3.5.2)
citr * 0.3.0 2018-12-18 [1] CRAN (R 3.5.0)
cli 1.1.0 2019-03-19 [1] CRAN (R 3.5.2)
cluster 2.0.7-1 2018-04-13 [1] CRAN (R 3.5.0)
coda 0.19-2 2018-10-08 [1] CRAN (R 3.5.0)
codetools 0.2-16 2018-12-24 [1] CRAN (R 3.5.2)
colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.5.2)
colourpicker 1.0 2017-09-27 [1] CRAN (R 3.5.0)
CompQuadForm 1.4.3 2017-04-12 [1] CRAN (R 3.5.0)
corpcor 1.6.9 2017-04-01 [1] CRAN (R 3.5.0)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.0)
crosstalk 1.0.0 2016-12-21 [1] CRAN (R 3.5.0)
curl 3.3 2019-01-10 [1] CRAN (R 3.5.2)
d3Network 0.5.2.1 2015-01-31 [1] CRAN (R 3.5.0)
data.table 1.12.0 2019-01-13 [1] CRAN (R 3.5.2)
DescTools 0.99.28 2019-03-17 [1] CRAN (R 3.5.2)
diffobj 0.2.2.9003 2019-05-27 [1] Github (brodieG/diffobj@5c9b288)
V digest 0.6.18 2019-05-20 [1] CRAN (R 3.5.2)
dplyr * 0.8.0.1 2019-02-15 [1] CRAN (R 3.5.2)
DT 0.5 2018-11-05 [1] CRAN (R 3.5.0)
dygraphs 1.1.1.6 2018-07-11 [1] CRAN (R 3.5.0)
effects * 4.1-0 2018-11-30 [1] CRAN (R 3.5.0)
emmeans 1.3.4 2019-04-21 [1] CRAN (R 3.5.2)
estimability 1.3 2018-02-11 [1] CRAN (R 3.5.0)
evaluate 0.13 2019-02-12 [1] CRAN (R 3.5.2)
expm 0.999-4 2019-03-21 [1] CRAN (R 3.5.2)
fansi 0.4.0 2018-10-05 [1] CRAN (R 3.5.0)
fdrtool 1.2.15 2015-07-08 [1] CRAN (R 3.5.0)
forcats * 0.3.0 2018-02-19 [1] CRAN (R 3.5.0)
foreign 0.8-71 2018-07-20 [1] CRAN (R 3.5.0)
Formula 1.2-3 2018-05-03 [1] CRAN (R 3.5.0)
generics 0.0.2 2018-11-29 [1] CRAN (R 3.5.0)
ggcorrplot 0.1.2 2018-09-11 [1] CRAN (R 3.5.0)
ggforce 0.1.3 2018-07-07 [1] CRAN (R 3.5.0)
ggm 2.3 2015-01-21 [1] CRAN (R 3.5.0)
ggplot2 * 3.1.1 2019-04-07 [1] CRAN (R 3.5.2)
ggraph * 1.0.2 2018-07-07 [1] CRAN (R 3.5.0)
ggrepel * 0.8.0 2018-05-09 [1] CRAN (R 3.5.0)
ggridges 0.5.1 2018-09-27 [1] CRAN (R 3.5.0)
glasso 1.10 2018-07-13 [1] CRAN (R 3.5.0)
glmmTMB 0.2.3 2019-01-11 [1] CRAN (R 3.5.2)
glue 1.3.1 2019-03-12 [1] CRAN (R 3.5.2)
gridExtra 2.3 2017-09-09 [1] CRAN (R 3.5.0)
gtable 0.3.0 2019-03-25 [1] CRAN (R 3.5.2)
gtools 3.8.1 2018-06-26 [1] CRAN (R 3.5.0)
haven 2.0.0 2018-11-22 [1] CRAN (R 3.5.0)
Hmisc 4.2-0 2019-01-26 [1] CRAN (R 3.5.2)
hms 0.4.2 2018-03-10 [1] CRAN (R 3.5.0)
htmlTable 1.13.1 2019-01-07 [1] CRAN (R 3.5.2)
htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.0)
htmlwidgets 1.3 2018-09-30 [1] CRAN (R 3.5.0)
httpuv 1.4.5.1 2018-12-18 [1] CRAN (R 3.5.0)
httr 1.4.0 2018-12-11 [1] CRAN (R 3.5.0)
huge 1.3.2 2019-04-08 [1] CRAN (R 3.5.2)
igraph 1.2.4.1 2019-04-22 [1] CRAN (R 3.5.2)
inline 0.3.15 2018-05-18 [1] CRAN (R 3.5.0)
jpeg 0.1-8 2014-01-23 [1] CRAN (R 3.5.0)
jsonlite 1.6 2018-12-07 [1] CRAN (R 3.5.0)
kableExtra * 1.0.1 2019-01-22 [1] CRAN (R 3.5.2)
knitr * 1.22 2019-03-08 [1] CRAN (R 3.5.2)
kutils 1.60 2019-01-23 [1] CRAN (R 3.5.2)
labeling 0.3 2014-08-23 [1] CRAN (R 3.5.0)
later 0.7.5 2018-09-18 [1] CRAN (R 3.5.0)
lattice 0.20-38 2018-11-04 [1] CRAN (R 3.5.0)
latticeExtra 0.6-28 2016-02-09 [1] CRAN (R 3.5.0)
lavaan * 0.6-3 2018-09-22 [1] CRAN (R 3.5.0)
lazyeval 0.2.2 2019-03-15 [1] CRAN (R 3.5.2)
lisrelToR 0.1.4 2013-05-08 [1] CRAN (R 3.5.0)
lme4 * 1.1-21 2019-03-05 [1] CRAN (R 3.5.2)
lmerTest * 3.1-0 2019-02-11 [1] CRAN (R 3.5.2)
loo 2.1.0 2019-03-13 [1] CRAN (R 3.5.2)
lubridate 1.7.4 2018-04-11 [1] CRAN (R 3.5.0)
magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.0)
manipulate 1.0.1 2014-12-24 [1] CRAN (R 3.5.0)
markdown 0.9 2018-12-07 [1] CRAN (R 3.5.0)
MASS 7.3-51.1 2018-11-01 [1] CRAN (R 3.5.0)
Matrix * 1.2-15 2018-11-01 [1] CRAN (R 3.5.0)
matrixcalc 1.0-3 2012-09-15 [1] CRAN (R 3.5.0)
MatrixModels 0.4-1 2015-08-22 [1] CRAN (R 3.5.0)
matrixStats 0.54.0 2018-07-23 [1] CRAN (R 3.5.0)
mcmc 0.9-6 2019-03-10 [1] CRAN (R 3.5.2)
MCMCpack 1.4-4 2018-09-14 [1] CRAN (R 3.5.0)
mgcv 1.8-26 2018-11-21 [1] CRAN (R 3.5.0)
mi 1.0 2015-04-16 [1] CRAN (R 3.5.0)
mime 0.6 2018-10-05 [1] CRAN (R 3.5.0)
miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 3.5.0)
minqa 1.2.4 2014-10-09 [1] CRAN (R 3.5.0)
mnormt 1.5-5 2016-10-15 [1] CRAN (R 3.5.0)
modelr 0.1.2 2018-05-11 [1] CRAN (R 3.5.0)
multcomp 1.4-8 2017-11-08 [1] CRAN (R 3.5.0)
MuMIn 1.43.6 2019-04-09 [1] CRAN (R 3.5.2)
munsell 0.5.0 2018-06-12 [1] CRAN (R 3.5.0)
mvtnorm 1.0-10 2019-03-05 [1] CRAN (R 3.5.2)
nFactors 2.3.3 2011-12-20 [1] CRAN (R 3.5.0)
nlme * 3.1-137 2018-04-07 [1] CRAN (R 3.5.0)
nloptr 1.2.1 2018-10-03 [1] CRAN (R 3.5.0)
nnet 7.3-12 2016-02-02 [1] CRAN (R 3.5.0)
nonnest2 0.5-2 2018-09-25 [1] CRAN (R 3.5.0)
numDeriv 2016.8-1 2016-08-27 [1] CRAN (R 3.5.0)
OpenMx 2.12.1 2019-01-18 [1] CRAN (R 3.5.2)
openxlsx 4.1.0 2018-05-26 [1] CRAN (R 3.5.0)
papaja * 0.1.0.9842 2019-02-04 [1] Github (crsh/papaja@6ef5e13)
pbapply 1.4-0 2019-02-05 [1] CRAN (R 3.5.2)
pbivnorm 0.6.0 2015-01-23 [1] CRAN (R 3.5.0)
pillar 1.3.1 2018-12-15 [1] CRAN (R 3.5.0)
pkgbuild 1.0.2 2018-10-16 [1] CRAN (R 3.5.0)
pkgconfig 2.0.2 2018-08-16 [1] CRAN (R 3.5.0)
plyr 1.8.4 2016-06-08 [1] CRAN (R 3.5.0)
png 0.1-7 2013-12-03 [1] CRAN (R 3.5.0)
ppcor 1.1 2015-12-03 [1] CRAN (R 3.5.0)
prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.0)
processx 3.2.1 2018-12-05 [1] CRAN (R 3.5.0)
promises 1.0.1 2018-04-13 [1] CRAN (R 3.5.0)
ps 1.3.0 2018-12-21 [1] CRAN (R 3.5.0)
psych 1.8.12 2019-01-12 [1] CRAN (R 3.5.2)
psycho * 0.4.0 2019-05-13 [1] Github (neuropsychology/psycho.R@c3a03b4)
purrr * 0.3.2 2019-03-15 [1] CRAN (R 3.5.2)
qgraph 1.6.2 2019-05-09 [1] CRAN (R 3.5.2)
quantreg 5.38 2018-12-18 [1] CRAN (R 3.5.0)
R6 2.4.0 2019-02-14 [1] CRAN (R 3.5.2)
RColorBrewer 1.1-2 2014-12-07 [1] CRAN (R 3.5.0)
Rcpp * 1.0.1 2019-03-17 [1] CRAN (R 3.5.2)
readr * 1.3.1 2018-12-21 [1] CRAN (R 3.5.0)
readxl * 1.2.0 2018-12-19 [1] CRAN (R 3.5.0)
reghelper * 0.3.4 2018-07-29 [1] CRAN (R 3.5.0)
remotes 2.0.2 2018-10-30 [1] CRAN (R 3.5.0)
reshape2 * 1.4.3 2017-12-11 [1] CRAN (R 3.5.0)
rjson 0.2.20 2018-06-08 [1] CRAN (R 3.5.0)
rlang 0.3.4 2019-04-07 [1] CRAN (R 3.5.2)
rmarkdown 1.11 2018-12-08 [1] CRAN (R 3.5.0)
rockchalk 1.8.129 2018-11-09 [1] CRAN (R 3.5.0)
rpart 4.1-13 2018-02-23 [1] CRAN (R 3.5.0)
rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.0)
rsconnect 0.8.13 2019-01-10 [1] CRAN (R 3.5.2)
rstan 2.18.2 2018-11-07 [1] CRAN (R 3.5.0)
rstanarm 2.18.2 2018-11-10 [1] CRAN (R 3.5.0)
rstantools 1.5.1 2018-08-22 [1] CRAN (R 3.5.0)
rstudioapi 0.9.0 2019-01-09 [1] CRAN (R 3.5.2)
rvest 0.3.2 2016-06-17 [1] CRAN (R 3.5.0)
sandwich 2.5-1 2019-04-06 [1] CRAN (R 3.5.2)
scales 1.0.0 2018-08-09 [1] CRAN (R 3.5.0)
sem 3.1-9 2017-04-24 [1] CRAN (R 3.5.0)
semPlot * 1.1 2017-03-27 [1] CRAN (R 3.5.0)
semTools 0.5-1 2018-09-24 [1] CRAN (R 3.5.0)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.0)
shiny 1.2.0 2018-11-02 [1] CRAN (R 3.5.0)
shinyjs 1.0 2018-01-08 [1] CRAN (R 3.5.0)
shinystan 2.5.0 2018-05-01 [1] CRAN (R 3.5.0)
shinythemes 1.1.2 2018-11-06 [1] CRAN (R 3.5.0)
SparseM 1.77 2017-04-23 [1] CRAN (R 3.5.0)
StanHeaders 2.18.1 2019-01-28 [1] CRAN (R 3.5.2)
stringi 1.4.3 2019-03-12 [1] CRAN (R 3.5.2)
stringr * 1.4.0 2019-02-10 [1] CRAN (R 3.5.2)
survey 3.35-1 2019-01-29 [1] CRAN (R 3.5.2)
survival 2.43-3 2018-11-26 [1] CRAN (R 3.5.0)
TH.data 1.0-9 2018-07-10 [1] CRAN (R 3.5.0)
threejs 0.3.1 2017-08-13 [1] CRAN (R 3.5.0)
tibble * 2.1.1 2019-03-16 [1] CRAN (R 3.5.2)
tidygraph * 1.1.0 2018-02-10 [1] CRAN (R 3.5.0)
tidyr * 0.8.3 2019-03-01 [1] CRAN (R 3.5.2)
tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.5.0)
tidyverse * 1.2.1 2017-11-14 [1] CRAN (R 3.5.0)
TMB 1.7.15 2018-11-09 [1] CRAN (R 3.5.0)
tweenr 0.1.5 2016-10-10 [1] CRAN (R 3.5.0)
units 0.6-0 2018-06-09 [1] CRAN (R 3.5.0)
utf8 1.1.4 2018-05-24 [1] CRAN (R 3.5.0)
uuid 0.1-2 2015-07-28 [1] CRAN (R 3.5.0)
viridis 0.5.1 2018-03-29 [1] CRAN (R 3.5.0)
viridisLite 0.3.0 2018-02-01 [1] CRAN (R 3.5.0)
webshot 0.5.0 2017-11-29 [1] CRAN (R 3.5.0)
whisker 0.3-2 2013-04-28 [1] CRAN (R 3.5.0)
withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.0)
xfun 0.5 2019-02-20 [1] CRAN (R 3.5.2)
XML 3.98-1.16 2018-08-19 [1] CRAN (R 3.5.0)
xml2 1.2.0 2018-01-24 [1] CRAN (R 3.5.0)
xtable 1.8-4 2019-04-21 [1] CRAN (R 3.5.2)
xts 0.11-1 2018-09-12 [1] CRAN (R 3.5.0)
yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.0)
V zip 1.0.0 2019-05-13 [1] CRAN (R 3.5.2)
zoo 1.8-5 2019-03-21 [1] CRAN (R 3.5.2)

[1] /Library/Frameworks/R.framework/Versions/3.5/Resources/library

V ── Loaded and on-disk version mismatch.

@noamross
Copy link
Owner

Yup, you need Pandoc version >= 2.1.2. You're using the Pandoc that's bundled with RStudio. If you update to the latest version RStudio, it will update Pandoc, as well.

@mvantieghem
Copy link
Author

Hi - I updated R studio!
I just tried to work through the example code:

library(redoc)
print(basename(redoc_example_docx()))
#> [1] "example.docx"
dedoc(redoc_example_docx())

This generated an example.Rmd file in my directory, cool!
Next I would like to test how changes in the word document can be "redoc"ed back into R markdown.
So I tried to knit the redoc to get it into word format to edit and test.
when I try to knit to redoc, I get the following error:

Error in print.rdocx(docx, output_file) :
example.docx+empty_paragraphs should have '.docx' extension.
Calls: -> -> print -> print.rdocx
Execution halted

@noamross
Copy link
Owner

I think you need to update the rmarkdown package to >= 1.12. I'll add this as an explicit requirement in the package DESCRIPTION.

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

No branches or pull requests

2 participants