Issues with OpenCPU

. 1 min read

I was running into this terrible error Package 'jsonlite' version 0.9.20 cannot be unloaded. Here is how I tried to debug and fix it

  • Try out in terminal using sudo su opencpu
  • Start R
  • Use .libPaths() to check libpaths used by OpenCPU
  • Couple of directories are important
    • /usr/lib/opencpu/library - This is apparently the default directory for built-in packages that come with OpenCPU
    • https://github.com/jeroenooms/opencpu/issues/113
      • Starting opencpu release 1.5.3 the packages from the opencpu library will be symlinked into /usr/lib/R/library and therefore also visible in a regular R session. This should make it easier to install packages without having to reinstall the opencpu system packages.
      • /usr/lib/R/library is the location is you run R using root login
      • Alternatively, you can use .libPaths("/usr/lib/R/library") before installing packages so that they get installed there. I think you still need sudo access
      • To install into the OpenCPU library, use .libPaths("/usr/lib/opencpu/library/")
  • Don't forget to restart sudo service opencpu restart

Tags

AWS Analytics Antifragile Apache Spark Apple Apps Arbitrage Automation Awesome BBMP Bangalore Black Swan Bonds Boonex Bootstrap Brokerage Charges CFPB CMS CSS Calypso Camelot Capital Markets Charts Chirp Choropleth Chrome Code Igniter Collections Containerization Converters Cycling DalalBeat Data Analytics Data Journalism Data Mining Data Munging Data Privacy Data Science Databases Debt Design Design Stock DesignStock Diet Django Docker Document Processing Dropbox Electron Electronics Entertainment Entrepreneurship Exercise FFMPEG Facebook Finance Fire TV Stick Fitness Forerunner From-The-News Fun Futures Gaana Garmin General Geocoding Getting Started Ghost Google APIs Google Sheets GraphicsMagick HHVM HTTPS Hackathon Hacks Hardware Health House Keeping Housing IBM BlueMix IBrokers IPinfo Ideas Image Conversion Image Processing Infographics Interactive Brokers Internet Investing IoT Legal Lets Encrypt Mac Machine Learning Mailbox app Mapbox Markdown Marketing Meteor Mockups MongoDB Mortgages Movies Music MyPad MySQL Nativefier Nature Netflix Newsletters Nginx Node.js Notes OCR OSX Open Source OpenCPU Options PDF PHP Pebble Peloton Personal Photography Picture Platforms Plex Portable Apps Productivity Property Tax PyroCMS Quantitative Finance R-Project Random Raspberry Pi Research Resources Reticulate Robot S3 SQLite STT Scraping Security Server Shell Shiny Side Project Sikuli Speech Recognition Spider Pro Spinning Spotify Startup Resources Startups Strategy Sublime Text System Monitoring Tax Terminal Tips To Do Tools Torrent Trading Trends Troubleshooting USElection2016 Ubuntu Unix Valuations Video Conversion Visualization Wagtail Wearables Weekend Fun WhatsApp Wordpress anaconda annie bash catalina cv2 daily coding dailycoding data.table debugging devtools downloader e-Signatures ggplot git go google maps hat-tip iOS iPad iPhone iTunes javascript jupyter logging macos numpy opencv optionality plotly python rstats videos youtube