Closed adamryczkowski closed 5 years ago
I tested #326 in a Windows VM started and seems to do the trick, but please confirm.
Same issue here; tested #326 both on windows and Linux, doesn't help unfortunately.
Can you pls check again?
Installing with devtools::install()
worked. It doesn't seem to support breakpoints in RStudio though, but inserting browser()
in the code makes it possible to enter debugging mode.
Also it seems the problem is averted by using "Configure Build Tools" in RStudio and using "Makefile" with option "install", instead of the "standard" Install and Restart in RStudio.
Tested on both Linux (Ubuntu 18.04) and Windows 10.
Note: If a first attemp with "regular build" has been made, make sure to revert the changes made to files (Pandoc.R and another R script, don't recall which one) during this failed build before attempting to reinstall with devtools or with Makefile.
Thanks a lot for the investigation, @dcomtois, and I'm glad you figured this out -- I'm closing this, as I cannot really help with this at this point.
You're welcome!
Side-note: When building / installing with Makefile (as opposed to devtools::install()
), we can actually debug adequately (meaning we can "follow" the code execution, although we still need to insert browser()
).
I am also facing this issue.
==> Rcpp::compileAttributes()
* Updated R/RcppExports.R
==> Rcmd.exe INSTALL --no-multiarch --with-keep.source pander
* installing to library '[redacted]/R/win-library/3.6'
* installing *source* package 'pander' ...
** using staged installation
** libs
C:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o pander.dll tmp.def RcppExports.o helpers.o pandoc.o -LC:/PROGRA~1/R/R-36~1.1/bin/x64 -lR
RcppExports.o:RcppExports.cpp:(.rdata+0x7f8): undefined reference to `pander_splitLine_cpp'
RcppExports.o:RcppExports.cpp:(.rdata+0x810): undefined reference to `pander_tableExpand_cpp'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'pander'
* removing '[redacted]/R/win-library/3.6/pander'
* restoring previous '[redacted]/R/win-library/3.6/pander'
Exited with status 1.
I want to write a little enhancement to the pander (to make it support markdown extensions). For this I forked it and opened the project with Rstudio on my Ubuntu 16.04 64bit notebook. Build fails with the following error:
Pandoc installed with
devtools::install_github('Rapporter/pander')
builds OK. Can anyone tell me, what is the problem?