Error in render R qmd document (could not find function "process")
1
0
Entering edit mode
Chutian • 0
@62b19925
Last seen 11 days ago
Hong Kong

Hi,

I am trying to render my R qmd file in R Studio, but get this message:


processing file: Study1.qmd
  |......................................              |  74% [unnamed-chunk-7]
Quitting from lines  at lines 142-148 [unnamed-chunk-7] (Study1.qmd)
Error in `process()`:
! could not find function "process"

Execution halted

problem is, process.R is a seperate .R document, which contains thousands of lines of code. It's been used to create a function for users.

Thanks, Chutian

R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22631)

Matrix products: default


locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8  LC_CTYPE=Chinese (Simplified)_China.utf8   
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C                               
[5] LC_TIME=Chinese (Simplified)_China.utf8    

time zone: Asia/Shanghai
tzcode source: internal

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

other attached packages:
 [1] knitr_1.46         Hmisc_5.1-2        fastDummies_1.7.3  lubridate_1.9.3    forcats_1.0.0     
 [6] stringr_1.5.1      dplyr_1.1.4        purrr_1.0.2        readr_2.1.5        tidyr_1.3.1       
[11] tibble_3.2.1       ggplot2_3.5.1      tidyverse_2.0.0    see_0.8.4          report_0.5.8      
[16] parameters_0.21.6  performance_0.11.0 modelbased_0.8.7   insight_0.19.10    effectsize_0.8.7  
[21] datawizard_0.10.0  correlation_0.8.4  bayestestR_0.13.2  easystats_0.7.1   

loaded via a namespace (and not attached):
 [1] gtable_0.3.5      xfun_0.43         htmlwidgets_1.6.4 lattice_0.22-5    tzdb_0.4.0       
 [6] vctrs_0.6.5       tools_4.3.3       generics_0.1.3    sandwich_3.1-0    fansi_1.0.6      
[11] cluster_2.1.6     pkgconfig_2.0.3   Matrix_1.6-5      data.table_1.15.4 checkmate_2.3.1  
[16] lifecycle_1.0.4   compiler_4.3.3    munsell_0.5.1     codetools_0.2-19  htmltools_0.5.8.1
[21] htmlTable_2.4.2   Formula_1.2-5     pillar_1.9.0      MASS_7.3-60.0.1   rpart_4.1.23     
[26] multcomp_1.4-25   digest_0.6.35     tidyselect_1.2.1  mvtnorm_1.2-4     stringi_1.8.3    
[31] splines_4.3.3     fastmap_1.1.1     grid_4.3.3        colorspace_2.1-0  cli_3.6.2        
[36] magrittr_2.0.3    base64enc_0.1-3   survival_3.5-8    utf8_1.2.4        TH.data_1.1-2    
[41] foreign_0.8-86    withr_3.0.0       backports_1.4.1   scales_1.3.0      estimability_1.5 
[46] timechange_0.3.0  rmarkdown_2.26    emmeans_1.10.1    nnet_7.3-19       gridExtra_2.3    
[51] zoo_1.8-12        hms_1.1.3         evaluate_0.23     coda_0.19-4.1     rlang_1.1.3      
[56] xtable_1.8-4      glue_1.7.0        rstudioapi_0.16.0 R6_2.5.1
quantro • 271 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 14 hours ago
United States

If you have functions in another R document, you have to source that document to load the functions into your workspace. Just like you would need to do in an interactive session.

Login before adding your answer.

Traffic: 764 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6