Alteryx Designer Desktop Knowledge Base

Definitive answers from Designer Desktop experts.

Fix "Error: package or namespace load failed for 'AlteryxRDataX'"

PaulN
Alteryx Alumni (Retired)
Created

Fix "Error: package or namespace load failed for 'AlteryxRDataX'"

Following an new installation of the predictive tools, while trying to run a workflow involving R tool or any macros that use R tool (most of the predictive tools for example), you may face following error message:

Error: R (1): Error: package or namespace load failed for 'AlteryxRDataX':     Info: R (1): .onLoad failed in loadNamespace() for 'AlteryxRDataX', details:     Info: R (1): call: NULL     Info: R (1): error: package or namespace load failed for 'showtext':     Info: R (1): .onLoad failed in loadNamespace() for 'showtext', details:     Info: R (1): call: utils::unzip(font_file, exdir = out_dir, overwrite = FALSE)     Info: R (1): error: 'exdir' does not exist     Error: R (1): Error: Unable to load the AlteryxRDataX package - Use the R installer provided by Alteryx     Error: R (1): Execution halted 

Example:

PaulN_0-1578474219822.png

Environment

  • Product - Alteryx Designer
    • All versions
  • Product - Predictive tools
    • All versions

Cause

This error occurs if of the R packages used by Alteryx for the R tool (https://cran.r-project.org/web/packages/showtext/index.html), can't freely access the folder defined by environment variable TMPDIR, TMP or TEMP. Package will stop as soon as one of them could be find found. They will be checked in this particular order, with user variable taking precedence over system variables if the 2 are defined).

Example:

In the following, example, environment variables will be read in following order (first available folder will be used):

  1. system TMP
  2. user TEMP
  3. system TEMP

environment_variable_temp.png

As C:\Windows\Temp exists but it not accessible for current user (see below), error will occur:

PaulN_4-1578476666777.png

Solution

    1. Close Designer
    2. Open Control Panel
    3. Open System
    4. Open Advanced system settings
    5. Click on Environment Variables
    6. Create a user environment variable called TMPor (TMPDIRif TMPalready exists) with a value set to a fully available folder (example: %LOCALAPPDATA%\Temp). Click on OK to close the window.

environment_variable_temp_create.png

7. Start Designer and run your workflow or test again

Comments
Lily0205
5 - Atom

I tried, but I still failed. sir, can you tell me where I did wrong?

Lily0205_0-1583884144495.png

 

EricWe
Alteryx
Alteryx

Hi @Lily0205

 

Please contact support@alteryx.com so we can look at this issue in further detail. 

DougP
6 - Meteoroid

Is there a workaround for those who do not have admin access to our machines and cannot change advanced system settings?

EricWe
Alteryx
Alteryx

Hi @DougP

 

If all of the Advanced System Settings are unavailable, you would have to contact your IT Department for assistance. However, you may set the user TEMP variable. Sometimes only the system variables require admin access.

DarleneK
Alteryx
Alteryx

Try to uninstall and reinstall Predictive Tools (it includes the R Tool) and perform these steps below:

 

In File Explorer, navigate to C:\Program Files\Alteryx\R-4.0.5\bin\x64.

 

From the x64 subfolder, open Rterm.exe as Admin, then run this command (swap out the package name)

 

install.packages("package_name", lib="c:\\Program Files\\Alteryx\\R-4.0.5\\library")

 

This has recently worked for a different user who was experiencing this issue.