[R] Some R code works on Linux, but not Linux via Windows Subsystem Linux

Robert Knight bobby@kn|ght @end|ng |rom gm@||@com
Tue Sep 8 05:51:10 CEST 2020


RE: Some R code works on Linux, but not Linux via Windows Subsystem Linux

This is taking data from a CSV and placing it into a data frame.  This is R
3.6.3 inside Windows Subsystem for Linux v2, Ubuntu 18.04.   The exact same
code, unchanged and on the same computer, works correctly in Ubuntu 18.04
and other Linux systems directly if the computer is dual booted into one of
those rather than Windows.

    Error in FUN(X[[i]], …) :
      only defined on a data frame with all numeric variables
    Calls: Summary.data.frame -> lapply -> FUN

Any idea why the FUN function would error on Windows Subsytem for Linux,
but not Linux itself?  Any insight into the basic mechanism of how that
could vary between systems?  Haven't yet checked to see if the data is even
getting imported via WSL.  The script runs using Rscript as opposed to
running interactively via the R console.

Robert D. Knight, MBA

Developer of Meal Plan and Grocery List maker for Android and iOS.
https://play.google.com/store/apps/details?id=io.robertknight.MPGL
https://itunes.apple.com/us/app/meal-plan-and-grocery-list/id1452755707

	[[alternative HTML version deleted]]



More information about the R-help mailing list