Skip to main content
GrN.dk

Main navigation

  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

r-project

By Greg Nowak, 14 March, 2021

R XML2

R-Project can be used to parse, build and validate XML files. The xml2 R library is the latest xml parsing library and should be used instead of the outdated xml library.

Install dev version from github:

# install.packages("devtools")
devtools::install_github("r-lib/xml2")

Links

Manual: https://rdrr.io/cran/xml2/man/

Tags

  • r-project
By Greg Nowak, 5 February, 2021

Reinstalling and Updating All Current R-Packages To New Version of R

In bash: R -e 'update.packages(checkBuilt = TRUE, ask = FALSE)'

Source: https://community.rstudio.com/t/reinstalling-packages-on-new-version-of…

Tags

  • rscript
  • r-project
By Greg Nowak, 23 January, 2021

Scraping Tools And Browser Automation

Even though phantomjs is dead, it is quite useful anyway in a nice Rscript.

Headless Chrome with R Selenium: https://github.com/ropensci/RSelenium/issues/138

Tags

  • r-project
  • scraping
By Greg Nowak, 9 November, 2017

Fix mailR java issues

You might have a couple of issues with mailR when running on a server.

When installing or after installing the r package: rJava you might encounter the following: libjvm.so: cannot open shared object file: No such file or directory

I fixed this on a ubuntu server with this command: sudo R CMD javareconf
 

Tags

  • Linux
  • Script
  • r-project
By Greg Nowak, 12 April, 2017

Time Stamp in R

How to make a nice time stamp with date and time in R:

now <- strptime(Sys.time(), "%Y-%m-%d%T")
time_stamp <- sprintf("%s", now )

 

Tags

  • r-project
  • rstudio
  • rscript
r-project

Review Greg on Google

Greg Nowak Google Reviews

 

  • Portfolio
  • About Greg Nowak
  • Gregs IT and Logistics Optimization
  • Shrink PDF In Linux
  • Running Linux on T450s T495s T14, Thinkpads and Others
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.