Articles by Adam Gladstone

Calling Python from C# using Python.NET

February 20, 2025 | Adam Gladstone

Recently, I've been using Python's __yfinance__ library to perform some simple portfolio analysis. Rather than using a Jupyter notebook to run the Python code and visualise the results, I thought it might be a nice idea to build a .NET desktop application using WinUI 3.0, XAML and C#. The application allows ...
[Read more...]

Calling C++ functions from R using Rcpp

December 23, 2024 | Adam Gladstone

If you are an R/RStudio user and you are learning C/C++ then this blog post may be interesting. Suppose that you've written a function in C/C++ (or even a whole program). You know how to run your code from the command line, passing in arguments and so ...
[Read more...]

Python in Excel via Reticulate

November 10, 2024 | Adam Gladstone

This post describes a particular use-case for Python in Excel and how it was solved using the R package Reticulate 1.39.0 (https://cran.r-project.org/web/packages/reticulate/index.html) along with the ExcelRAddIn (https://github.com/Adam-Gladstone/Office365AddIns). A while back I read an interesting post on LinkedIn that ...
[Read more...]

Office365 AddIns for R (Part III)

April 26, 2024 | Adam Gladstone

A while back, I introduced the __ExcelRAddIn__ ([Office365 AddIns for R (Part I)](https://adam-gladstone.github.io/r-project/Office365AddIns-for-R-part-I/)). This is an Office365 AddIn that allows you to evaluate an R-script from within Excel and use the results. This blog-post describes some of the recent updates to the ExcelRAddIn.
[Read more...]

Office365 AddIns for R (Part II)

October 3, 2023 | Adam Gladstone

In the previous post [Office365 AddIns for R (Part I)](https://adam-gladstone.github.io/r-project/Office365AddIns-for-R-part-I/), I introduced the __ExcelRAddIn__. In this post I would like to describe the __RScriptAddIn__ for Word.
[Read more...]