rjournal / rjtools

Tools for AUTHORS to use for checking and submitting articles to the R Journal
https://rjournal.github.io/rjtools/
Other
31 stars 14 forks source link

web article abstract pulled right #16

Closed cmtso closed 3 years ago

cmtso commented 3 years ago

Hi all,

thanks for the very nice package. But I get a strange behaviour that the abstract text is pulled off to the right. See here:

https://cmtso.github.io/RJsandboxweb/sandbox


R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)

Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.19.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8   
 [6] LC_MESSAGES=C              LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
 [1] palmerpenguins_0.1.0  plotly_4.9.3          ggplot2_3.3.3         latexdiffr_0.1.0.9000 rjtools_0.0.0.9001    pander_0.6.4         
 [7] stringr_1.4.0         lubridate_1.7.10      cowplot_1.1.1         mgcv_1.8-27           nlme_3.1-137          packrat_0.5.0        
[13] changepoint_2.2.2     zoo_1.8-9            

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6        lattice_0.20-38   tidyr_1.1.3       assertthat_0.2.1  digest_0.6.27     utf8_1.2.1        mime_0.10         R6_2.5.0         
 [9] evaluate_0.14     httr_1.4.1        pillar_1.6.0      rlang_0.4.10      lazyeval_0.2.2    rstudioapi_0.13   data.table_1.14.0 Matrix_1.2-15    
[17] rmarkdown_2.7     labeling_0.4.2    splines_3.5.3     htmlwidgets_1.5.3 munsell_0.5.0     hunspell_3.0.1    shiny_1.6.0       compiler_3.5.3   
[25] httpuv_1.5.5      xfun_0.22         pkgconfig_2.0.3   htmltools_0.5.1.1 tidyselect_1.1.0  tibble_3.1.1      viridisLite_0.4.0 fansi_0.4.2      
[33] crayon_1.4.1      dplyr_1.0.5       withr_2.4.2       later_1.1.0.1     grid_3.5.3        jsonlite_1.7.2    xtable_1.8-4      gtable_0.3.0     
[41] lifecycle_1.0.0   DBI_1.1.1         magrittr_2.0.1    scales_1.1.1      cli_2.4.0         stringi_1.5.3     farver_2.1.0      fs_1.3.1         
[49] promises_1.2.0.1  ellipsis_0.3.1    generics_0.1.0    vctrs_0.3.7       tools_3.5.3       cranlogs_2.1.1    glue_1.4.2        purrr_0.3.4      
[57] crosstalk_1.1.1   fastmap_1.1.0     yaml_2.2.1        colorspace_2.0-0  knitr_1.32       
huizezhang-sherry commented 3 years ago

Hey,

Thanks for trying the rjtools out!

I had a look at your repository and it seems that the .Rproj file and skeleton.rmd are missing for a full reproduce of the paper. After setting eval = FALSE, the abstract is properly formatted as below:

Screen Shot 2021-09-17 at 8 12 10 pm

It would be helpful if the missing files are available on github and we can further diagnose where goes wrong.

cmtso commented 3 years ago

wow that's great. Sorry for the very silly question--but where exactly do you set eval=FALSE? I can't figure out how to do it

cmtso commented 3 years ago

If you are referring the chunk of skeleton.Rmd, I don't think it's the issue. I removed that chunk and it didn't change the appearnace of the abstract. I did not have a .Rproj file

cmtso commented 3 years ago

It turns out to be a R version issue when I ran it on R 3.5.3. When I rerun the repo on R 4.0.4, the issue is resolved.

cmtso commented 3 years ago

Sorry while I am on it, how do I set addresses for the 'pdf' button?

dicook commented 3 years ago

this will set automatically when it is published online

On 18 Sep 2021, at 6:38 pm, Michael Tso @.***> wrote:

Sorry while I am on it, how do I set addresses for the 'pdf' button?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

cheers, Di


Dianne Cook @.***