* installing *source* package 'rtiktoken' ...
** this is package 'rtiktoken' version '0.11.0.2'
** package 'rtiktoken' successfully unpacked and MD5 sums checked
** using staged installation
Using cargo 1.92.0 (344c4567c 2025-10-21)
Using rustc 1.92.0 (ded5c06cf 2025-12-08)
Building for CRAN.
Writing `src/Makevars.win`.
`tools/config.R` has finished.
** libs
using C compiler: 'gcc.exe (GCC) 14.3.0'
make[1]: Entering directory '/d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src'
gcc  -I"D:/RCompile/recent/R-4.5.3/include" -DNDEBUG     -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include"      -pedantic -Wstrict-prototypes -O2 -Wall -std=gnu2x  -mfpmath=sse -msse2 -mstackrealign   -c entrypoint.c -o entrypoint.o
mkdir -p ./rust/target/libgcc_mock
touch ./rust/target/libgcc_mock/libgcc_eh.a
if [ -d ./vendor ]; then \
	echo "=== Using offline vendor directory ==="; \
	mkdir -p /d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo && \
	cp rust/vendor-config.toml /d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo/config.toml; \
elif [ -f ./rust/vendor.tar.xz ]; then \
	echo "=== Using offline vendor tarball ==="; \
	tar xf rust/vendor.tar.xz && \
	mkdir -p /d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo && \
	cp rust/vendor-config.toml /d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo/config.toml; \
fi
=== Using offline vendor tarball ===
# Build the project using Cargo with additional flags
export CARGO_HOME=/d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo && \
export LIBRARY_PATH=";/d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/./rust/target/libgcc_mock" && \
RUSTFLAGS=" --print=native-static-libs" cargo build -j 2 --offline --target=x86_64-pc-windows-gnu --lib --release --manifest-path=rust/Cargo.toml --target-dir=./rust/target
   Compiling proc-macro2 v1.0.106
   Compiling unicode-ident v1.0.24
   Compiling quote v1.0.45
   Compiling memchr v2.8.0
   Compiling aho-corasick v1.1.4
   Compiling regex-syntax v0.8.10
   Compiling regex-automata v0.4.14
   Compiling extendr-ffi v0.9.0
   Compiling syn v2.0.117
   Compiling paste v1.0.15
   Compiling anyhow v1.0.102
   Compiling bit-vec v0.8.0
   Compiling bit-set v0.8.0
   Compiling extendr-api v0.9.0
   Compiling lazy_static v1.5.0
   Compiling extendr-macros v0.9.0
   Compiling fancy-regex v0.17.0
   Compiling readonly v0.2.13
   Compiling bstr v1.12.1
   Compiling regex v1.12.3
   Compiling rustc-hash v1.1.0
   Compiling once_cell v1.21.4
   Compiling base64 v0.22.1
   Compiling tiktoken-rs v0.11.0
   Compiling rtiktoken v0.1.0 (D:\temp\2026_08_22_01_50_00_18846\RtmpoRFWFO\R.INSTALL2424208e65a5\rtiktoken\src\rust)
note: link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: -lR -lkernel32 -lntdll -luserenv -lws2_32 -ldbghelp

    Finished `release` profile [optimized] target(s) in 1m 54s
# Generate wrappers
export CARGO_HOME=/d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo && \
export PATH="/usr/bin:/x86_64-w64-mingw32.static.posix/bin:/d/RCompile/recent/R-4.5.3/bin/x64:/usr/bin:/x86_64-w64-mingw32.static.posix/bin:/usr/bin:/x86_64-w64-mingw32.static.posix/bin:/usr/bin:/x86_64-w64-mingw32.static.posix/bin:/usr/bin:/x86_64-w64-mingw32.static.posix/bin:.:/usr/bin:/x86_64-w64-mingw32.static.posix/bin:/c/Program Files/MiKTeX/miktex/bin/x64:/c/Program Files/gs/gs/bin:/d/compiler/qpdf/bin:/d/RCompile/CRANpkg/extralibs/localsolver_4_0/bin:/d/RCompile/CRANpkg/extralibs/MARK:/c/Program Files/7-Zip:/d/Compiler/gretl:/c/Program Files/Quarto/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files/Pandoc:/c/Program Files/MiKTeX/miktex/bin/x64:/c/Program Files/AdoptOpenJDK/jdk-11.0.11.9-hotspot/bin:/c/Program Files/Microsoft MPI/Bin:/c/Program Files/sourceforge/ipmiutil:/c/Program Files/Python39:/c/Program Files/Python39/Scripts:/d/Compiler/Ruby/bin:/c/Program Files (x86)/WinSCP:/c/Program Files/gs/gs/bin:/c/Program Files/Supermicro/SuperDoctor5:/c/Program Files/Intel/Intel(R) Memory and Storage Tool:/c/Program Files/PuTTY:/d/temp/2026_06_10_01_50_00_489/RtmpykRJ0I/rapp-bin-frontmatter6b1831ee1cdc:/d/temp/2026_06_08_01_50_00_26021/Rtmpk9eBzG/rapp-bin-frontmattere9d83a7338b:/c/Users/CRAN/.cargo/bin:/c/Users/CRAN/AppData/Local/Microsoft/WindowsApps:/c/Users/CRAN/AppData/Roaming/TinyTeX/bin/win32:/usr/bin:/c/Program Files/Julia/bin:/c/Users/CRAN/.cargo/bin:/d/compiler/LDC/bin:/d/RCompile/recent/R-4.5.3/bin/x64/:/c/Users/CRAN/Documents/.cargo/bin" && \
RUSTFLAGS=" --print=native-static-libs" cargo run -j 2 --offline --bin document --release --target x86_64-pc-windows-gnu --manifest-path=./rust/Cargo.toml --target-dir ./rust/target
note: link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: -lR -lkernel32 -lntdll -luserenv -lws2_32 -ldbghelp

   Compiling rtiktoken v0.1.0 (D:\temp\2026_08_22_01_50_00_18846\RtmpoRFWFO\R.INSTALL2424208e65a5\rtiktoken\src\rust)
    Finished `release` profile [optimized] target(s) in 34.25s
     Running `rust/target\x86_64-pc-windows-gnu\release\document.exe`
# Always clean up CARGOTMP
rm -Rf /d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo;
gcc -shared -s -static-libgcc -o rtiktoken.dll rtiktoken-win.def entrypoint.o -L./rust/target/x86_64-pc-windows-gnu/release -lrtiktoken -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.5.3/bin/x64 -lR
rm -Rf /d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src/.cargo vendor ./rust/target
make[1]: Leaving directory '/d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src'
make[1]: Entering directory '/d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src'
make[1]: Leaving directory '/d/temp/2026_08_22_01_50_00_18846/RtmpoRFWFO/R.INSTALL2424208e65a5/rtiktoken/src'
installing to d:/Rcompile/CRANpkg/lib/4.5/00LOCK-rtiktoken/00new/rtiktoken/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** 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
* MD5 sums
packaged installation of 'rtiktoken' as rtiktoken_0.11.0.2.zip
* DONE (rtiktoken)