Skip to content

Commit

Permalink
R and R-Instat Information
Browse files Browse the repository at this point in the history
  • Loading branch information
derekagorhom committed Oct 16, 2024
1 parent 6c5e859 commit b29b658
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions data/Scripts/R and R-Instat Information.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#Information about R in R-Instat and the R packages included!

#We generally update with each release to use the latest stable version of R
#From 2024 this means R-Instat is only for 64-bit machines.
#If you know someone who is still using a 32bit machine, their latest version
#of R-Instat is 0.7.16 which can be downloaded from the R-Instat web site.
R.version

#We like RStudio, but, for simplicity, we install a separate version of R.
# We have two library locations for the R packages installed with R-Instat
#Location [2] from the libpaths function below, is where they are all loaded
# on installation. The Tools > Install R package permits the used to
# update an existing R package, or to add a new one.
.libPaths()

# Somr R packages are loaded into memory, each time you start R-Instat.
# The sessionInfo function shows which they are:
sessionInfo()

# We currently load almost 600 packages into R-Instat. We choose about
# 200 of them and they add the others that they depend on.
# The results from this command are shown, for convenience, in a data frame
# Get the installed packages as a matrix
installed_packages_matrix <- installed.packages()

# Convert the matrix to a data frame
installed_packages_df <- as.data.frame(installed_packages_matrix, stringsAsFactors = FALSE)
data_book$import_data(data_tables=list(installed_packages_df=installed_packages_df))
data_book$get_data_frame(data_name="installed_packages_df")

0 comments on commit b29b658

Please sign in to comment.