Apr 30, 2019 I needed to install the R package quadprog, which only works for R with version 3.6.0. So I installed R (3.6.0 version), and open it with RStudio. But now I failed to load any libraries, even after I installed the packag. The Mount Aloysius College Library offers a wide array of services to meet the needs of its many college patrons. The following services are available to all MAC students, faculty and staff through the College Library.
Updated 23 September 2019
In this article, I will show you how to install Clang with libc++ on Ubuntu Linux and Windows System for Linux. Same procedure should work on other Debian based Linux distributions. Latest version of Clang supports the C++17 standard and has experimental support for C++20.
If you want to compile Clang from sources check my previous post.
Alternatively, if you are using Docker, you can install Clang 9 in a Docker container.
Open a Terminal (on Windows 10, you can open a Command Prompt or a PowerShell window and write bash to start WSL) and make sure your system is updated:
Next, we need to install a few prerequisites for running Clang:
Download and extract latest binary of Clang, which is 9.0.0 at the time of this writing:
Next, you will need to add Clang to your system PATH:
Let’s try to compile and run a C++17 code that uses an if block with init-statement (the example is a bit silly, but it will show you how to compile C++17 programs):
Save the above code in a file named if_test.cpp and compile it with:
This is what I see on my machine:
Next, let’s try to compile a program that uses the C++17 Filesystem:
Save the above file as test_fs.cpp and compile it with:
This is what I see on my machine if I run the above code (you should see a list of files that are present in the folder where you have the executable):
Finally, let’s test if we can use C++17 std::optional:
This is what I see if I build and run the above code:
Clang 9 has experimental support for the new C++20 standard, at this time you’ll need to use std=c++2a in order to enforce the C++20 standard. Here is an example of using the new C++20 std::span:
This is what I see if I build and run the above code: Checking itunes library message. How to transfer songs from ipod to itunes library on mac.
If you are interested to learn more about modern C++ I would recommend reading A tour of C++ by Bjarne Stroustrup.
or Effective Modern C++ by Scott Meyers.
The Library Menu item is hidden by default on Macs, to prevent the possibility of inexperienced users deleting important files in the Library Folder. In this article, you will find different methods to reveal the hidden Library Menu and access the Library Folder on your Mac.
The Library Folder on your Mac contains Preference Files, Caches, and Application Support Data.
While regular Mac users may not find the need to access the Hidden Library Folder, advanced Mac users will at times come across the need to access files inside the Library Folder for troubleshooting and other purposes.
One example of the need to access the Library Folder on Mac would be to rebuild the Database Files in the Library Folder, in order to fix Launchpad related issues like Apps Missing From Launchpad or deleted Apps showing up in the Launchpad.
Before going ahead with the steps to Access the Hidden Library Folder on your Mac, you need to be aware that ~/Library Folder contains important Data and Files related to Mac User Accounts.
Hence, make sure that you are accessing the Library Folder for a good reason and you do know as to what you are trying to achieve.
Follow the steps below to access the Hidden Library Menu option on your Mac.
1. Left-click your mouse anywhere on the screen of your Mac. This will reveal the Go Option in the top menu bar of your Mac. You can also click on the Finder Icon in the Dock of your Mac to activate the Go Option.
2. Next, click on the Go option in the top menu-bar of your Mac.
3. While you are still on the Go option, press and hold the Option key on your Mac and then click on the Library option that appears when you press down the Option Key.
Note: Press the Alt Key in case you are using a Windows keyboard with your Mac.
4. Clicking on the Library Menu option will take you straight to the Library Folder on your Mac.
Another way to access the Library Folder on your Mac is by using the Folder Option on your Mac.
1. Left-click your mouse anywhere on the screen of your Mac to reveal the Go Option in the top menu bar. You can also click on the Finder Icon in the Dock of your Mac to activate the Go option.
2. Next, click on the Go option from the top menu-bar on your Mac and then click on Go to Folder… option in the drop-down menu (See image below).
3. In the search window that appears, type ~/Library, and click on the Go button.
This will immediately take you to the Library Folder on your Mac.
You can permanently unhide the Library Menu Option in the top-menu bar on your Mac by using the Terminal Command. The process is reversible and you can easily go back to the default hidden Library Menu Setting by using the Terminal command once again.
1. Click on the Finder icon in the dock of your Mac to activate the Go option in the top Menu bar of your Mac.
2. Next, click on the Go option in the top menu-bar and then click on the Utilities option in the drop-down menu.
3. On the Utilities window, open the Terminal App by clicking on it.
4. Next, type chflags nohidden ~/Library/ and Press the Enter key to submit your command for execution.
Once the command is executed, you will see the Library Option clearly visible and permanently unhidden in the top menu-bar of your Mac.
As mentioned above, you can always go back to the default hidden Library option on your Mac by executing a simple command in the Command Prompt Window.
1. To hide the Library option, type chflags hidden ~/Library/ in the Command prompt window (See image below)
2. After typing the Command, hit the Enter key on the Keyboard of your Mac to execute this Command.
Once the Command is executed, you will see the Library Menu option becoming hidden.