Skip to content

Instantly share code, notes, and snippets.

View rsangole's full-sized avatar
:octocat:

Rahul rsangole

:octocat:
View GitHub Profile
@rsangole
rsangole / error.log
Created August 14, 2022 23:51
Error while trying to install topicmodels on my MacOS 12.5
> renv::install("topicmodels")
Retrieving 'https://cran.microsoft.com/snapshot/2022-06-25/src/contrib/topicmodels_0.2-12.tar.gz' ...
OK [file is up to date]
Installing topicmodels [0.2-12] ...
FAILED
Error installing package 'topicmodels':
=======================================
* installing to library ‘/Users/rahul/github/github.com/blog/quarto/renv/staging/1’
* installing *source* package ‘topicmodels’ ...
@rsangole
rsangole / linear_growth.R
Created January 10, 2020 23:17
Prophet Code showing Issue with Logistic Growth with MCMC sampling
H <- 365*2
# READ IN to_share.csv here
full_model <- read.csv("to_share.csv")
m <- prophet(
yearly.seasonality = "auto",
weekly.seasonality = F,
daily.seasonality = "auto",
changepoint.range = 0.8,
@rsangole
rsangole / devtools_install_attempt.log
Created November 16, 2018 20:28
Package install issues on new HDI cluster
hw831@ed0-rserve:~/common_setup_utils/R/Azure_HDI_Cluster_dev$
sudo R --no-save -q -e "install.packages('devtools',repo='https://mran.microsoft.com/snapshot/2018-11-01')"
> install.packages('devtools',repo='https://mran.microsoft.com/snapshot/2018-11-01')
Installing package into ‘/opt/microsoft/mlserver/9.3.0/libraries/RServer’
(as ‘lib’ is unspecified)
also installing the dependencies ‘fs’, ‘usethis’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 780k 100 780k 0 0 960k 0 --:--:-- --:--:-- --:--:-- 960k
@rsangole
rsangole / install_packages.R
Last active November 6, 2018 14:21
R package install issues - MS HDI
library("dplyr")
pkgs_wanted <- c(
"anomalize",
"AnomalyDetection",
"arules",
"assertive",
"assertthat",
"astsa",
"bayesm",
@rsangole
rsangole / problem_query
Created August 20, 2018 14:10
SQL query issues
query <- "SELECT uid, timestamp, sensor_1 FROM database_name.long_table_name_here WHERE ((uid = 'abxyz1230' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1236' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1230' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1236' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1230' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1236' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1230' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1236' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = 'abxyz1230' AND filter_id = '1' AND timestamp >= '2018-07-23' AND timestamp <= '2018-08-02') OR (uid = '
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 439k 100 439k 0 0 2085k 0 --:--:-- --:--:-- --:--:-- 2091k
* installing *source* package ‘lubridate’ ...
** package ‘lubridate’ successfully unpacked and MD5 sums checked
** libs
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
make: [RcppExports.o] Error 127 (ignored)
> install.packages("odbc", repos = 'https://mran.microsoft.com/snapshot/2018-07-01')
Installing package into ‘/home/hw831/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘bit’, ‘bit64’
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 54779 100 54779 0 0 295k 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
@rsangole
rsangole / fs_error_after_custompackagecompilation.log
Created March 21, 2018 15:19
fs_error_after_custompackagecompilation
> install.packages('fs',repos='http://cran.us.r-project.org')
Installing package into ‘/home/hw831/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2 777k 2 19685 0 0 43174 0 0:00:18 --:--:-- 0:00:18 43168100 777k 100 777k 0 0 639k 0 0:00:01 0:00:01 --:--:-- 640k
* installing *source* package ‘fs’ ...
** package ‘fs’ successfully unpacked and MD5 sums checked
** libs
g++ -std=c++0x -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I. -DU_STATIC_IMPLEMENTATION -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/Rcpp/include" -c id.cc -o id.o
@rsangole
rsangole / fs_error.log
Created March 20, 2018 15:16
fs install error
> install.packages('fs',repos='http://cran.us.r-project.org')
Installing package into ‘/home/hw831/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 48 777k 48 374k 0 0 353k 0 0:00:02 0:00:01 0:00:01 353k100 777k 100 777k 0 0 641k 0 0:00:01 0:00:01 --:--:-- 642k
* installing *source* package ‘fs’ ...
** package ‘fs’ successfully unpacked and MD5 sums checked
** libs
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I. -DU_STATIC_IMPLEMENTATION -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/Rcpp/include" -c id.cc -o id.o