Installing Rstan

See below and I still have non-zero exit status for Rstan and stanHeaders

install.packages(“jsonlite”,type=“source”)
trying URL ‘https://cran.rstudio.com/src/contrib/jsonlite_1.7.2.tar.gz
Content type ‘application/x-gzip’ length 421716 bytes (411 KB)
downloaded 411 KB

  • installing source package ‘jsonlite’ …
    ** package ‘jsonlite’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c base64.c -o base64.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c collapse_array.c -o collapse_array.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c collapse_object.c -o collapse_object.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c collapse_pretty.c -o collapse_pretty.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c escape_chars.c -o escape_chars.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c integer64_to_na.c -o integer64_to_na.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c is_datelist.c -o is_datelist.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c is_recordlist.c -o is_recordlist.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c is_scalarlist.c -o is_scalarlist.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c modp_numtoa.c -o modp_numtoa.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c null_to_na.c -o null_to_na.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c num_to_char.c -o num_to_char.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c parse.c -o parse.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c prettify.c -o prettify.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c push_parser.c -o push_parser.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c r-base64.c -o r-base64.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c register.c -o register.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c row_collapse.c -o row_collapse.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c transpose_list.c -o transpose_list.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c validate.c -o validate.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl.c -o yajl/yajl.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl_alloc.c -o yajl/yajl_alloc.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl_buf.c -o yajl/yajl_buf.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl_encode.c -o yajl/yajl_encode.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl_gen.c -o yajl/yajl_gen.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl_lex.c -o yajl/yajl_lex.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl_parser.c -o yajl/yajl_parser.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/“gcc -I"C:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/include” -DNDEBUG -Iyajl/api -D__USE_MINGW_ANSI_STDIO -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c yajl/yajl_tree.c -o yajl/yajl_tree.o
    "C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/"ar rcs yajl/libstatyajl.a yajl/yajl.o yajl/yajl_alloc.o yajl/yajl_buf.o yajl/yajl_encode.o yajl/yajl_gen.o yajl/yajl_lex.o yajl/yajl_parser.o yajl/yajl_tree.o
    C:/Users/Alphonce.bere/Documents/rtools40/mingw64/bin/gcc -shared -s -static-libgcc -o jsonlite.dll tmp.def base64.o collapse_array.o collapse_object.o collapse_pretty.o escape_chars.o integer64_to_na.o is_datelist.o is_recordlist.o is_scalarlist.o modp_numtoa.o null_to_na.o num_to_char.o parse.o prettify.o push_parser.o r-base64.o register.o row_collapse.o transpose_list.o validate.o -Lyajl -lstatyajl -LC:/Users/ALPHON~1.BER/ONEDRI~1/DOCUME~1/R/R-40~1.3/bin/x64 -lR
    installing to C:/Users/Alphonce.bere/OneDrive - University of Venda/Documents/R/R-4.0.3/library/00LOCK-jsonlite/00new/jsonlite/libs/x64
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    in method for ‘asJSON’ with signature ‘“blob”’: no definition for class “blob”
    ** help
    *** installing help indices
    converting help for package ‘jsonlite’
    finding HTML links … done
    base64 html
    flatten html
    fromJSON html
    prettify html
    rbind_pages html
    read_json html
    serializeJSON html
    stream_in html
    unbox html
    validate html
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded from temporary location
    ** testing if installed package can be loaded from final location
    ** testing if installed package keeps a record of temporary installation path
  • DONE (jsonlite)

The downloaded source packages are in
‘C:\Users\Alphonce.bere\AppData\Local\Temp\RtmpiyVKuO\downloaded_packages’