I am trying to create mapbox tiles using mapboxapi::tippecanoe() in R. Unfortunately, my work computer runs Windows 10, which greatly complicates what I am trying to do. Tippecanoe is a Unix executable, so I downloaded and installed Ubuntu and am running it on a Windows subsystem for Linux. To get tippecanoe to launch, I had to edit the source code of mapboxapi::tippecanoe() to pass arguments to WSL. I then ran into an issue where Tippecanoe would give me an error that it could not open database files. Some research on Github led me to believe that this was related the number of open files limit in Ubuntu. After a lot of digging, I was able to increase ulimit -n to 65535 for on my ubuntu terminal. As soon as I launch Ubuntu, if I type in ulimit -n, I get 65535. However, when I call `sytem2("wsl", "ulimit -n"), I get the default value of 1024. I thought this was due to the user that R was calling in Ubuntu, but running system2("wsl", "whoami") returned the username for who I increased both the hard and soft nofile limits for. I am really stumped. Apologies for not pasting a reproducible example, but I am not sure how to make one for this situation. Any help would be much appreciated. Thanks!
ulimit different between ubuntu terminal and call from R
102 Views Asked by Sean McKenzie At
1
There are 1 best solutions below
Related Questions in R
- How to make an R Shiny app with big data?
- How do I keep only specific rows based on whether a column has a specific value?
- Likert scale study - ordinal regression model
- Extract a table/matrix from R into Excel with same colors and stle
- How can I solve non-conformable arguments in R netmeta::discomb (Error in B.matrix %*% C.matrix)?
- Can raw means and estimated marginal means be the same ? And when?
- Understanding accumulate function when .dir is set to "backwards"
- Error in if (nrow(peaks) > 0) { : argument is of length zero Calls: CopywriteR ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution ha
- How to increase quality of mathjax output?
- Convert the time intervals to equal hours and fill in the value column
- How to run an R function getpoints() from IPDfromKM package in an R shiny app which in R pops up a plot that utilizes clicks to capture coordinates?
- Replace NA in list of dfs in certain columns and under certain conditions
- R and text on Cyrillic
- The ts() function in R is returning the correct start and frequency but not end value which is 1 and not 179
- TROUBLING with the "DROP_NA" Function
Related Questions in UBUNTU
- Error: local variable 'bramka' referenced before assignment
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Can't connect to local postgresql server from my docker container
- How to install libfuse2 on Ubuntu 22.04
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Can anyoone help me with this problem while trying to install hadoop on ubuntu?
- Ubuntu wsl2 in windows, my /etc/fonts/fonts.conf keeps reloading
- psutil.sensors.temperatures() only delivers {}
- Issue with [proxy_fcgi:error] [pid 1539011] (70007)The timeout specified has expired
- Viber is not working on Ubuntu 22.04 Jammy
- why is ubuntu 18.4 still showing as a linux subsystem when i have uninstalled it?
- Why when I want to open a folder from Visual Studio Code does the screen go crazy?
- What is this error when trying to update Ubuntu?
- Angular on IONOS(?) throws an error with npm
- Tensorflow can't find TensoRT
Related Questions in WINDOWS-SUBSYSTEM-FOR-LINUX
- WSL able to touch file but mkdir: Permission denied
- Microsoft VS Code not showing MFA code when logging into WSL
- How do I install wsl on a PC with a clean install of Windows 11 using ubuntu.tar, an image file created and saved on a previous PC?
- Why does the following program printf "thread 1 exists" twice in WSL2?
- Text selection replacement in ZSH
- tail -f does not follows files on WSL
- Python doesn't detect the library
- Error "libicui18n.so.73: cannot open shared object file" after installing Node.js via Homebrew on Windows Subsystem for Linux (WSL)
- Docker Desktop - Unexpected WSL error And WslRegisterDistribution failed with error: 0x80041002 Error: 0x80041002 (null)
- Windows WSL yarn command appends folder name at end of import
- I am having an issue in using my C++ and python oot blocks with my gnuradio C++ flowgraph
- Run a Linux application on WSL from a Windows python script
- Why does gmsh not work in WSL2 after installing from source?
- Is there a way to install the vscode plugin offline in the local WSL via vscode's ssh?
- There Windows 10 WSL 2 network doesn't work
Related Questions in TIPPECANOE
- Time Slider for Mapbox Vector Tiles: Separate SQLite Files or a Single Combined File?
- Problem converting OpenStreetMap tiles to mbtiles
- Installing felt / tippecanoe
- tippecanoe: assign random uuids to clusters, preserve ids for non-clusters
- Offset in tile_row using addProtocol in Maplibre-gl-js
- How to create two layered MbTiles for large featured files using Tippecanoe?
- LeafletJS & Protomaps: Read a PMTiles file generated with tippecanoe latest (v2.11.0)
- ulimit different between ubuntu terminal and call from R
- how to avoid polygon being clipped with tileset?
- Changing zoom extent of streets in Mapbox
- Vector tileset not accurate at lower zoom levels
- Estimating Mapbox tile processing costs
- Tippecanone & Mapbox - loosing details in a specific zoom level
- Display Vector Tile (PBF) in Azure Maps
- Mbtiles generation with tippecanoe on a mixed geojson feature file
Related Questions in MAPBOX-API-VECTORTILES
- ulimit different between ubuntu terminal and call from R
- How to use Ordance Survey vector tiles with React-Leaflet?
- Vector tileset not accurate at lower zoom levels
- Mapbox Vector Tile generated in GeoServer cuts off labels on tile edges when using OpenLayers but not when using MapLibre-gl
- Convert mbgl-offline db to mbtiles
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Well after a whole lot of tinkering, this ended up being mostly a straightforward R code issue. The
ulimitissue may still have been a problem, but actually I need to fix the R code inmapboxapi::tippecanoe(). Becausemapboxapi::tippecanoe()uses thesystem()command to calltippecanoe, not only did I need to change the call to invoke wsl through a login shell usingsystem2("wsl", "- d Ubuntu -lc 'tippecanoe <arguments to tippecanoe>'"), but I also needed to change the paths that R sent to tippecanoe to be linux paths instead of Window paths. If anyone else is having trouble with this, here is the tweakedmapboxapi::tippecanoe()command code that actually worked for me: