Error detecting locale: Error in make.names(col.names, unique = TRUE): '<d6><f7><bb><fa>' multi-byte multi-character error,(Using default: en_US)

Hi! I encounter this problem when I try to publish my book to It seems that some lacks of package is the cause, while I am not sure at all. The details of warning message are as follows. Could someone help me? Thanks :blush: :blush:!!!

--------- [ERROR MESSAGE] ---------------------------\n:1:10: fatal error: hb-ft.h: No such file or directory\ncompilation terminated.\n--------------------------------------------------------------------\nERROR: configuration failed for package ‘textshaping’\n* removing ‘/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.6.2/textshaping’"
[Connect] 2023/04/12 01:14:35.677833627 Error: Command failed (1)
[Connect] 2023/04/12 01:14:35.677841746
[Connect] 2023/04/12 01:14:35.677880661 Failed to run system command:
[Connect] 2023/04/12 01:14:35.677881626
[Connect] 2023/04/12 01:14:35.677888310 '/opt/R/3.6.2/lib/R/bin/R' --vanilla CMD INSTALL --preclean '/opt/rstudio-connect/mnt/tmp/RtmpeFTikw/packrat-install-79e43e10c527/textshaping' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.6.2' --install-tests --no-docs --no-multiarch --no-demo
[Connect] 2023/04/12 01:14:35.677889439
[Connect] 2023/04/12 01:14:35.677895823 The command failed with output:
[Connect] 2023/04/12 01:14:35.677896457 * installing source package ‘textshaping’ ...
[Connect] 2023/04/12 01:14:35.677902908 ** package ‘textshaping’ successfully unpacked and MD5 sums checked
[Connect] 2023/04/12 01:14:35.677904200 ** using staged installation
[Connect] 2023/04/12 01:14:35.677911236 Package fribidi was not found in the pkg-config search path.
[Connect] 2023/04/12 01:14:35.677911845 Perhaps you should add the directory containing `fribidi.pc'
[Connect] 2023/04/12 01:14:35.677918313 to the PKG_CONFIG_PATH environment variable
[Connect] 2023/04/12 01:14:35.677919214 No package 'fribidi' found
[Connect] 2023/04/12 01:14:35.677926066 Using PKG_CFLAGS=
[Connect] 2023/04/12 01:14:35.677926866 Using PKG_LIBS=-lfreetype -lharfbuzz -lfribidi -lpng
[Connect] 2023/04/12 01:14:35.677933659 --------------------------- [ANTICONF] --------------------------------
[Connect] 2023/04/12 01:14:35.677934425 Configuration failed to find the harfbuzz freetype2 fribidi library. Try installing:
[Connect] 2023/04/12 01:14:35.677941007 * deb: libharfbuzz-dev libfribidi-dev (Debian, Ubuntu, etc)
[Connect] 2023/04/12 01:14:35.677941723 * rpm: harfbuzz-devel fribidi-devel (Fedora, EPEL)
[Connect] 2023/04/12 01:14:35.677948381 * csw: libharfbuzz_dev libfribidi_dev (Solaris)
[Connect] 2023/04/12 01:14:35.677949006 * brew: harfbuzz fribidi (OSX)
[Connect] 2023/04/12 01:14:35.677955342 If harfbuzz freetype2 fribidi is already installed, check that 'pkg-config' is in your
[Connect] 2023/04/12 01:14:35.677956003 PATH and PKG_CONFIG_PATH contains a harfbuzz freetype2 fribidi.pc file. If pkg-config
[Connect] 2023/04/12 01:14:35.677962974 is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
[Connect] 2023/04/12 01:14:35.677963623 R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
[Connect] 2023/04/12 01:14:35.677971215 -------------------------- [ERROR MESSAGE] ---------------------------
[Connect] 2023/04/12 01:14:35.677971854 :1:10: fatal error: hb-ft.h: No such file or directory
[Connect] 2023/04/12 01:14:35.677978033 compilation terminated.
[Connect] 2023/04/12 01:14:35.677978713 --------------------------------------------------------------------
[Connect] 2023/04/12 01:14:35.677985128 ERROR: configuration failed for package ‘textshaping’
[Connect] 2023/04/12 01:14:35.677985761 * removing ‘/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.6.2/textshaping’
[Connect] 2023/04/12 01:14:35.677992205
[Connect] 2023/04/12 01:14:35.677992827 Unable to fully restore the R packages associated with this deployment.
[Connect] 2023/04/12 01:14:35.677999393 Please review the preceding messages to determine which package
[Connect] 2023/04/12 01:14:35.678000115 encountered installation difficulty and the cause of the failure.
[Connect] 2023/04/12 01:14:35.686685542 Warning message:
[Connect] 2023/04/12 01:14:35.686916186 In packrat::restore(overwrite.dirty = TRUE, prompt = FALSE, restart = FALSE) :
[Connect] 2023/04/12 01:14:35.686922687 The most recent snapshot was generated using R version 4.2.3
[Connect] An error occurred while building your content.
[Connect] This link offers advice for this kind of error:
[Connect] Troubleshooting - Posit Connect: User Guide
[Connect] Build error: An error occurred while building your content. (Error code: r-missing-system-library)
Site deployment failed with error: An error occurred while building your content. (Error code: r-missing-system-library)
Warning message:
Error detecting locale: Error in make.names(col.names, unique = TRUE): ''multi-byte multi-character error
(Using default: en_US)

yes it seems some package can't be installed on

It seems you are using R 3.6.2 or similar ? Could you upgrade to 4.2 ?

Seems the package with issue is textshaping - can you be sure to update your package to latest version before trying again ?

Thank you

Thanks for your reply :blush:!
I have tried this code which was provided by yihui's book:

  name = NULL,
  account =NULL,
  server = NULL,
  render = NULL

Finally, I have succeeded in publishing my own book :smiley:.
While the URL was set in random way, such as "". I want to change it in " account/name of my book". How could I achieve it?

What do you want to put as name ? I think it was not set that way because of the special character in URL probably

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.