I am trying to render a HTML file using rmarkdown::render for an interactive plot generated from this package GitHub - oganm/brainspriteR: Shiny widget for brainsprite. It works very well when I simply run the following in studio
However, when I run the same rmarkdown::render code in the terminal, the rendered HTML does not contain/show the plot. I have loaded markdown and knitr library. Could you please help? Thanks a lot.
And here is some info of the rstudioserver module I loaded
help([[
Description
===========
RStudio Server enables you to provide a browser
based interface to a version of R running on a remote Linux
server, bringing the power and productivity of the
RStudio IDE to server-based deployments of R.
More information
================
- Homepage: https://www.rstudio.com/
]])
whatis("Description: RStudio Server enables you to provide a browser
based interface to a version of R running on a remote Linux
server, bringing the power and productivity of the
RStudio IDE to server-based deployments of R.")
whatis("Homepage: https://www.rstudio.com/")
whatis("URL: https://www.rstudio.com/")
conflict("rstudio-server")
depends_on("flexiblascore/.3.0.4")
depends_on("java/13.0.2")
prepend_path("CMAKE_PREFIX_PATH","/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx512/Core/rstudio-server/2021.09.1+372")
prepend_path("PATH","/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx512/Core/rstudio-server/2021.09.1+372/bin")
setenv("EBROOTRSTUDIOMINSERVER","/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx512/Core/rstudio-server/2021.09.1+372")
setenv("EBVERSIONRSTUDIOMINSERVER","2021.09.1+372")
setenv("EBDEVELRSTUDIOMINSERVER","/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx512/Core/rstudio-server/2021.09.1+372/easybuild/avx512-Core-rstudio-server-2021.09.1+372-easybuild-devel")
depends_on("r/4.1.2")
If Pandoc version are different, then you'll have possibly different result. Especially when the version are really different!
This is really an old version. With Pandoc < 2.0, there will be a lot of feature that would not be working in your HPC environment.
Ideally, you need to make Pandoc version the same in both your environment, or at least have a recent Pandoc version in your HPC environment.
Pandoc is a self contained binary, which is quite portable and you can use an environment variable or a R command to make it found by rmarkdown - Putting it in PATH is better but not mandatory.